for (i in 1:3) {
a.larvae[i] ~ dexp(1)
x.larvae[i] <- a.larvae[i]/a.larvae.sum
}
a.larvae.sum <- sum(a.larvae[])
and calculate the allele frequencies and inbreeding coefficient from
the genotype frequencies.
| Genotype | |||
| Fitness |
|
1 |
|
then the frequency of the
chromosome at equilibrium is
. To make sure you don't run into numerical problems
when calculating this in WinBUGS, use this code:1
p.poly <- step(s.1)*step(s.2)*(s.2/(s.1+s.2))