Simulation of More Complex Models

Hi class,

The book by Marc Kery “Introduction to WinBUGS for Ecologists” makes extensive use of simulated datasets. It starts with a mean model, and then t-tests, and goes up through GLMMs including ZIPs and mixture models.   See the book web site for a couple of sample chapters.

The code from his book is in this file R_WB_Code.txt .  There are no data files because he simulates everything (I think he does use real data in some of the exercises).  I also downloaded an errata file and an updated appendix with tips for using WinBUGS.  WinBUGS and OpenBUGS are very similar, so most of the advice should apply to either program.

I’ll go over one of the examples for simulating a GLMM.  We’ll even throw in some autocorrelation, if I can figure out how to do it.

Jack

Leave a Reply

Your email address will not be published. Required fields are marked *