Functions, Demos and Examples of Bayesian Analysis and Basic MCMC


[Up] [Top]

Documentation for package ‘nclbayes’ version 0.3.9

Help Pages

abrasion Data from an experiment to investigate how weight loss due to abrasion (in g/hr) of rubber is affected by hardness (in degrees Shore) and tensile strength (in kg/cm^2).
aircraft Data on the number of 'multi-fatality crashes' in the week following 17 known cases of 'murder-suicide', together with an index of newspaper coverage.
babies Data showing the outcomes from a set of babies, categorised as 'Full term' or 'Premature', and 'alive at end of year 1' or 'died in year 1'. The mothers are included, categorised as either 'Young' or 'Older' and 'Smokers' or 'Non-smokers'.
barolo The prices of 75cl bottles of Barolo wines in July 2010 from the website of a Italian wine reseller. The price does not include the delivery charge.
births A dataset containing the time of birth (hh:mm), sex, and birth weight (in grams) for each of 44 babies born in one 24-hour period at a Brisbane, Australia hospital. Also included is the number of minutes since midnight for each birth.
cavendish Data collected by the 18th century physicist Henry Cavendish, who made 23 experimental determinations of the earth's density (in g per cubic cm)
coagulation Data on the effect of three new diets on the blood coagulation times (in seconds) in a set of animals.
contamination Data on the aerobic colony counts (acc, measured in colony forming units per millilitre) of ten selected keyboards with samples taken from four keys per keyboard on a particular day. The keyboards were selected randomly from those available in the computer laboratory.
crickets Data on the frequency of chirps made by a striped ground cricket, at various ground temperatures.
dbvnorm The Bivariate Normal distribution
dbvt The Bivariate t distribution
demoCommands Launches an editor containing the commands in a demo
dgt The Generalised t distribution
dinvchi The Inverse Chi distribution
dnormgamma The Normal-Gamma distribution
dnorminvchi The Normal-InvChi distribution
elicitgzerofn Function used in the elicitation of normal-gamma prior distribution by using quantiles for mu and tau
elicitNGa Elicitation of normal-gamma prior distribution by using quantiles for mu and tau
exposure The chlorobenzene exposure concentrations (15 min TWAs) in ppm for a chemical worker during a full workshift for 30 consecutive days.
gibbsNormal Gibbs sampler for a normal random sample with a semi-conjugate prior
gibbsNormal2 Gibbs sampler for a normal random sample with a conjugate prior
gibbsReffects Gibbs sampler for a one-way normal random effects model with a semi-conjugate prior
glassfibre The breaking strengths of 63 glass fibres of length 1.5cm.
granite A random sample of granite gravestones was taken from a cemetery in Savannah, a city along the southeast coast of the USA (coastal) and a cemetery in Macon, Georgia, a town located 170 miles inland from Savannah (inland). The dataset consists of the age of each gravestone (the difference between the current year and the year the person died), the depth of degradation (in mm) as determined by the lettering alteration method, and the location of the gravestone where the value of location is 0 for coastal and 1 for inland.
hdiBeta The highest density interval (HDI) for a Beta(a,b) distribution
hdiGamma The highest density interval (HDI) for a Gamma(a,b) distribution
hdiInvchi The highest density interval (HDI) for a Inv-Chi(a,b) distribution
hepatitis Data on the logarithm of ornithine carbonyltransferase (a liver enzyme) in a random sample of patients suffering from acute viral hepatitis.
IBMprices Data consisting of 160 consecutive daily IBM common stock closing prices.
insulation Data on weekly gas consumption (in thousands of cubic feet) at 30 houses over 56 weeks. The data includes the outside temperature (in degrees C), and the presence of insulation (z=1: no insulation, z=2: insulation present).
leukaemia Data on 33 leukaemia patients, classified by AG Group (1: AG positive, 2: AG negative). For each patient white blood cell count and survival time (in weeks) is also provided.
lungs Data on 50 patients suffering from a chronic lung disease. Included is 30 measurements of lung function (y1 to y30), along with patient age (in years), sex (0: female, 1:male), and smoking status (0:non-smoker, 1:smoker).
malcolm Data collected by Malcolm on the height and shoe size of a random sample of students
mcmcAnalysis Summarise and plot tabular MCMC output
mcmcBoxplot Box plots from MCMC output
mcmcCi Equi-tailed confidence intervals from MCMC output
mcmcProcess Function to remove burn-in and thin MCMC output
metropolis Metropolis algorithm to simulate realisations from a standard normal distribution
mhReffects Metropolis-Hastings algorithm for a one-way normal random effects model
moths The number of spruce moths found in traps after 48 hours by location of trap in tree (top branches, middle branches, lower branches, ground) and type of lure in the trap (scent, sugar, chemical).
mwgGamma Metropolis within Gibbs algorithm for a gamma random sample
NGacontour The Normal-Gamma distribution
NGaposterior Parameters of the NGa posterior distribution when sampling from a normal population and using a NGa prior distribution
oldfaithful Data on successive waiting times (in minutes) between eruptions of the "Old Faithful" geyser in Yellowstone National Park, Wyoming, USA.
pgt The Generalised t distribution
pinvchi The Inverse Chi distribution
protein Data from an experiment to calibrate a near infrared reflectance instrument. Included is the protein content (%) as determined by a standard method (y1 to y30), and measurements of reflectance at six different wavelengths (x1 to x6).
qgt The Generalised t distribution
qinvchi The Inverse Chi distribution
quadform2d Calculates a quadratic form for 2-d vectors
rats Data on the weights of a set of thirty young rats, measured over time (in days).
rgt The Generalised t distribution
rinvchi The Inverse Chi distribution
rnormgamma The Normal-Gamma distribution
rnorminvchi The Normal-InvChi distribution
sales Data on the number of orders received by a small company for one of its products over time. The data consists of 30 sets of 100 consecutive weeks.
shoots The number of roots produced by 270 micropropagated shoots of the apple cultivar Trajan. During the rooting period, all shoots were maintained under identical conditions but the shoots themselves were cultured on media containing different concentrations of cytokinin BAP, in growth cabinets with an 8 or 16 hour photoperiod. Thus each experimental condition is decribed by two factors: BAP concentration (2.2, 4.4, 8.8 and 17.6 $\mu M$) and photoperiod (8 and 16 hours).
sideeffects Data showing the number of patients who were given different doses of a certain drug, along with the number of patients who exhibited a particular side effect.
surgery Data on the number of patients undergoing surgery and the number who died in hospital in two areas of the USA, broken down by age and sex. A group number corresponding to area and sex is provided, along with the midpoint of the age range (in years).
tcontour The Bivariate t distribution
tonsils A dataset containing the results of a study of the tonsil size (Normal, Large or Very Large) of 1398 school children, along with whether or not they were carriers of the bacterium Streptococcus pyogenes.