TriangNormHWE {HWEBayes} | R Documentation |
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.
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. (2009). Bayesian methods for examining Hardy-Weinberg equilibrium. Biometrics.
DirichNormHWE
, DirichNormSat
, DirichSampHWE
, DirichSampSat
, HWEDirichBF2
, TriangNormHWE
nvec <- c(88,10,2) TriangNormHWE(nvec)