Bayesian Statistics: An Introduction:
WinBUGS programs
Computer programs (in WinBUGS) relating to the book
Attention is drawn to David Lunn et al.,
The BUGS book: A Practical Introduction to Bayesian Analysis,
Boca Racon: CRC Press 2013
Click here for information about WinBUGS.
- Section 2.2 (rocks.txt - data on age of rocks)
- Section 2.3 (chests.txt - data on chest
measurements)
- Section 2.8
(ratweight.txt - data on uterine
weight of rats - mean assumed known)
- Section 2.12
(ratweight_unknownvar.txt
- data on uterine weight of rats with mean and variance both assumed
unknown)
- Section 2.13 (wheat.txt - data on wheat
with a growth hormone)
- Section 3.1 (limericks.txt - data on
limericks)
- Section 3.4 (misprints.txt - data on
misprints using reference prior)
- Section 3.5 (misprints_informative.txt -
data on misprints using informative prior)
- Section 3.6 (uniform.txt - data from a
uniform distribution)
- Section 3.8 (firstdigit.txt - data
on the first digit problem)
- Section 3.9 (accidents.txt - data on
times of accidents using circular normal)
- Section 3.10 (cauchy.txt - simulation
from a Cauchy distribution)
- Section 4.1 (w.txt - data on the W particle)
- Section 4.3 (ratweight.txt - data on
uterine weight of rats)
- Section 4.5 (pointnull.txt - data
concerning a point null hypothesis)
- Section 5.1 (sleep.txt - data on paired
comparison between sleep gained by drugs)
- Section 5.1 (ratdiet.txt - data on
weight gain for rats with different diets - variance known)
- Section 5.2 (ratdiet_unknownvar.txt
- data on weight gain for rats with different diets - variance unknown)
- Section 5.4 (hay.txt - data on hay yields)
- Section 5.5 (nitrogen.txt - Lord
Rayleigh’s nitrogen data)
- Section 5.6 (inoculum.txt - Di
Raimondo’s data on bacterial inoculum on mice)
- Section 6.2 (cuckoo.txt - data on cuckoo eggs)
- Section 6.3 (rain.txt - data on York rainfall)
- Section 6.4 (raincont.txt - further
data on York rainfall)
- Section 6.5 (scabindex.txt - data on
scab index for potatoes)
- Section 7.3 (fish.txt - data on recapture of fish)
- Section 8.3 (baseball.txt - data on
baseball hits)
- Section 9.2 (linkage.txt - data on
genetic linkage)
- Section 9.2 (wheat.txt - data on wheat
with a growth hormone)
- Section 9.2 (blood.txt - data on
coagulation time of blood)
- Section 9.3 (linkage_augmentation.txt -
data on genetic linkage)
- Section 9.4 (chained.odc - example on
chained data augmentation due to Casella and George)
odc file
(a text version is available as chained.txt)
- Section 9.4 (wheat.txt - data on
wheat with a growth hormone)
- Section 9.4 (coal.txt - data about
coal mining disasters)
- Section 9.7 (chained.odc -
example on chained data augmentation due to Casella and George);
odc file
(a text version is available as chained.txt)
- Section 9.7 (pumps_winbugs.txt -
the pump failure example revisited)
- Section 9.7 (pumpsmodel.txt - model file for
pumps data for use in R2OpenBUGS or R2OpenBUGS)
- Section 9.7 (pumps_r2winbugs.txt -
pumps data run via R2WinBUGS)
- Section 9.7 (pumps_r2openbugs.txt -
pumps data run via R2OpenBUGS)
- Section 9.7 (pumps_coda.txt - program segment
for use of coda)
- Section 9.8 (logistic.txt - example on
logistic regression)
- Section 9.9, Exercise 9 (chained.odc -
example on chained data augmentation due to Casella and George);
odc file
(a text version is available as chained.txt)
- Section 9.9, Exercise 11 (rats.txt - data
about rat weight growth)
- Section 9.9, Exercise 14 (logisti2.txt -
example on logistic regression)
Peter M. Lee
Revised 9 November 2012