BMTRY 719: Bayesian Biostatistics

Contact information

Elizabeth Slate
SlateEH at musc dot edu
876-1133
Office hours: M 3:00-5:00, W 4:00-5:00

Course information

syllabus (pdf)

Assignments

  1. HW 1 (As a student noted, the conclusion in problem 1 appears to be backward!) (soln 1)
  2. HW 2 (soln 2; R code)
  3. HW 3
    (soln 3, R code)
  4. HW 4
  5. Quiz Solutions

References

Class Examples

Mar. 9
A WinBUGS implementation of the rat tumor example.
Mar. 2, 7
The puromycin example: lisp, WinBUGS. The lisp code uses the xlisp-stat function bayes-model, which has associated code for determining the second order Lapace approximation to marginal distributions. The marginal density plots for normal-gamma prior (independent normal priors on theta1 and theta2, gamma prior on tau) shown in class Mar. 7 were correct. The prior has more influence in this model than we might think, at first.
Feb. 21
The bioassay example in WinBUGS. We exported the data into R by using the "coda" button on the "sample monitor tool" available from the "inference" menu, saving the window that listed the iteration number and sampled value to a text file, and then reading this file by using the "read.table" command in R.
Feb. 16
"Intuition" for effective sample size.
Key references for MCMC convergence issues:
Feb. 14
R code for Gibbs sampling the binomial-beta-Poisson model. Associated R log file.
Feb. 7
R work.
Feb. 7.
The beta-binomial WinBUGS example.
model
{
y ~ dbin(p, n)
p ~ dbeta(alpha, beta)
}
data list(y = 8, n = 145, alpha = .5, beta = .5)
inits list(p = .5)
To load the model, highlight the word "model" and then click "check model" in the Specification Tool from the Model menu. To load the data, highlight the word "list" beginning the data and then click "load data" on the Specification Tool from the Model menu. Then compile using the Specification Tool. Then highlight the word "list" beginning the list of initial values for parameters and click "load inits" on the Specification Tool.

To run, use Inference -> Samples to bring up the Sample Monitor Tool. Type p in the node menu and then click set, to specify that we want to monitor the node p for the default of 1000000 iterations (this many iterations would be overkill for this simple model!). Bring up the Update tool from the Model -> update menu. Click "update" to run the default of 1000 iterations.

Now p has been monitored for these 1000 iterations and the values and various statistics about these values are available from the Sample Monitor Tool.