This contains a set of functions and scripts that can be used to run the various examples described in the book.
- Utils.R: a utility script including several functions used to pre- and post-process data and output.
- LoadData.R: a script to load the data example.
- vaccine.txt: a
BUGSscript to run the model.
- RunMCMC.R: a script to run the MCMC model (using either
- vaccine.RData: the
Rworkspace with the processed output.
Smoking cessation example
- smoking_data.csv: a spreadsheet with the data.
- smoking_model_RE.R: a
Rscript including the code to run the
BUGSmodel described in Chapter 2.