Description Usage Arguments Value Author(s) References See Also Examples
Function to evaluate the normalizing constant given a "triangular" prior and the HWE model, in the k=2 allele case. This prior results from marginalizing the conjugate Dirichlet prior with parameters (1,1,1) on the genotype frequencies under the alternative.
1 | TriangNormHWE(nvec)
|
nvec |
vector of genotype frequencies in the order n_{11}, n_{21}, n_{22}. |
Normalizing constant is returned.
Jon Wakefield (jonno@u.washington.edu)
Wakefield, J. (2010). Bayesian methods for examining Hardy-Weinberg equilibrium. Biometrics; Vol 66:257-65
DirichNormHWE
, DirichNormSat
, DirichSampHWE
, DirichSampSat
, HWEDirichBF2
, TriangNormHWE
1 2 | nvec <- c(88,10,2)
TriangNormHWE(nvec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.