EEB 348 - Population Genetics
Overvieew Textbook Lecture Schedule Readings Lecture Notes Resources Home

October 28, 2006

WinBUGS code for Problem #4

I've modified the WinBUGS code a little (see below for comments on what I've changed) and uploaded it to the web site. In addition to the link to
problem-4-bugs.txt here, you'll also find a link to it on the detail pages where you find the data. I'll spend a few minutes at the beginning of lecture on Monday illustrating a couple of new things you'll need to know about running WinBUGS for this analysis.

The good news is that you only need to add code (a) to relate the observational components of variance to the causal components of variance (which should be pretty straightforward), (b) to estimate the heritability, and (c) to estimate the response to selection. The code for doing the regression of fitness in phenotype is already embedded. (I'll show you where on Monday.)

If you want to play with this code before lecture, you'll have to do one thing in addition to what you've done before. After Model->Specification “check model”, “load data”, and “compile”, you'll need to click “load inits” before clicking “gen inits” and updating. If that doesn't make sense, don't worry about it. Have a nice weekend, and I'll explain it on Monday.

Changes in the WinBUGScode

Posted by Kent at October 28, 2006 1:14 PM | TrackBack
Comments
Post a comment









Remember personal info?