Description Usage Arguments Value Author(s) References See Also Examples
Function to evaluate the normalizing constant given a conjugate Dirichlet prior and the HWE model.
1 | DirichNormHWE(nvec, bvec0)
|
nvec |
vector of genotype frequencies in the order n_{11}, n_{12},..., n_{1k},n_{22} ..., n_{2k},..., n_{kk}. |
bvec0 |
vector of length k Dirichlet prior parameters, where k is the number of alleles. |
The normalizing constant.
Jon Wakefield (jonno@u.washington).
Wakefield, J. (2010). Bayesian methods for examining Hardy-Weinberg equilibrium. Biometrics; Vol 66:257-65
1 2 | data(DiabRecess)
DirichNormHWE(nvec=DiabRecess,bvec0=rep(1,4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.