This is a listing, by session, of all the R-code companions available for the SISG MCMC course, as well as a few other materials.
Session 4
- MCMC Sampling for a Simple Inbreeding Model. We review our simple model for inbreeding at a locus and develop the code to perform several different types of Metropolis-Hastings updates, then augment the model to include latent variables that let us easily to Gibbs-sampling updates.
Session 6
- Analyzing multiple runs of structure. Using a little R package,
Rrunstruct
, to conduct multiple structure runs, obtain trace information from the runs, and compare the results from multiple runs.
Data sets
- You can get the
cats.dat
data set by clicking this link, and then copying the data and putting it into a text file on your computer named cats.dat
.
Additional Lecture-like things