Teaching‎ > ‎Bayesian workshop 2010‎ > ‎

BayesianWorkshopSoftwarePrograms

Programs used in the workshop:

Session 1: Introduction to Bayesian Inference

WinBUGS programs and datasets for logistic regression

Script Model  Initial values Data

SAS program for logistic regression

Program

Sessions 2 & 4:

R functions implementing TSA, MCSA, and BSA for simple 2 by 2 table settings (linked to the Gustafson and McCandless article) is posted at:

http://www.stat.ubc.ca/~gustaf/probsens/codeforweb.R


Session 3: Adjustment for an imperfect reference test in a diagnostic study

WinBUGS program for estimating prevalence using a single, imperfect test

Script  Model initial values

SAS program for estimating prevalence using a single, imperfect test

 Program

WinBUGS program for evaluating a new diagnostic test using an imperfect reference test

Script  Model initial values

SAS  program for evaluating a new diagnostic test  using an imperfect reference test

 Program


Session 4: Adjustment for misclassification in outcome/exposure in a case control study

WinBUGS code and R-calling-WinBUGS code is posted at

http://www.stat.ubc.ca/~gustaf/probsens/adjust.txt 
http://www.stat.ubc.ca/~gustaf/probsens/adjust.R

And for the validation subsample case:

http://www.stat.ubc.ca/~gustaf/probsens/val.txt 
http://www.stat.ubc.ca/~gustaf/probsens/val.R