[logo]
The BUGS Project
The BUGS Project
examples readme
((((
Welcome Page
Latest News
Contact us/BUGS list
WinBUGS
New WinBUGS examples
FAQs
DIC
GeoBUGS
PKBUGS
Running from other software
BUGS resources online
WinBUGS development site
OpenBUGS site

Contents

Examples for the BUGS project

The following are documented in the examples manuals and full data files, initial value files and .bug model files are available.

Examples in Volume 1 - basic examples

Rats normal hierarchical models with missing data
Pump conjugate gamma-Poisson hierarchical model
Seeds random effects logistic regression
*Surgical institutional ranking
Salm extra-Poisson variation in dose-response study
*Equiv bioequivalence and missing data in a cross-over trial
*Dyes variance components model
*Stacks robust and ridge regression
Epil repeated measures on Poisson counts
Blocker random effects meta-analysis of clinical trials
Oxford smooth fits to log-odds ratios in case-control studies
*LSAT latent variable models for item-response data
*Bones latent trait model for multiple ordered categorical responses
*Inhaler random effects model for ordinal responses from a cross-over trial
Litters beta-binomial model for clustered response data
Mice Weibull regression in censored survival analysis
Kidney Weibull regression with random effects
Leuk survival analysis using Cox regression (with fraility)

Examples in Volume 2 - more advanced examples

*Dugongs a nonconjugate, nonlinear model
Biops discrete variable latent class model
Eyes normal mixture model
*Hearts a mixture model for count data
Air covariate measurement error in logistic regression
Cervix case-control study with errors in discrete covariates
*Jaw repeated measures analysis of variance
*Birats a bivariate Normal hierarchical model
*Schools ranking school examination results using multivariate hierarchical models
Ice non-parametric smoothing in an age-cohort model
Lips spatial smoothing of cancer rates
*Beetles logistic, probit and extreme value (log-log) model comparison
*Pines Bayes factors for selecting regression models
*Alli multinomial logistic models
*Endo conditional inference in case-control studies
*Asia a simple expert system with learning
Pigs genetic counselling and pedigree analysis
*Cosmos flexible mean and variance relationships using Legendre polynomial basis functions
Marsbars order constraints in 2-way ANOVA
Stagnant a changepoint problem

The files available will create an /examples subdirectory with the following structure:

Directory Contents Type Description
/examples /vol1 directory  
/examples /vol2 directory  
/examples/vol1 /xxx directory vol1 examples
/examples/vol2 /xxx directory vol2 examples
/examples/vol1/xxx xxx.bug ascii bugs input file for example xxx
/examples/vol2/xxx xxx.dat ascii data file for example xxx
  xxx.in ascii initial value file for example xxx

Obtaining files for UNIX systems

By FTP

Point your browser or FTP client to the directory /pub/methodology/bugs/examples on ftp.mrc-bsu.cam.ac.uk and get the file "exdir05.tar.Z".

Directly from the Web page

Go to the examples page and click on the relevant icon. A dialog box will then appear giving you the option to save the file to a selected directory.

Unpacking files

You will need to uncompress and untar the files by typing
  uncompress exdir05.tar.Z       
  tar xvpf exdir05.tar

which will unpack the directory structure into your current directory.

Obtaining files for DOS systems

By FTP

Point your browser or FTP client to the directory /pub/methodology/bugs/examples on ftp.mrc-bsu.cam.ac.uk and get the file "exdir05.exe".

Directly from the Web page

Go to the download page and click on the relevant icon. A dialog box will then appear giving you the option to save the file to a selected directory.

Unpacking files

Unpack the directory structure by typing
exdir05 -o -d  <return>

The file contents will be extracted automatically and placed in your current directory. In some window systems it may be possible unpack the file by simply trying to open it.


© 1996-2008 BUGS
Hosted by the MRC Biostatistics Unit, Cambridge, UK
Site designed by Alastair Stevens
TOP