Evaluates the normalizing constant under the HWE model, for the "triangular" prior distribution

Description

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.

Usage

1

Arguments

nvec

vector of genotype frequencies in the order n_{11}, n_{21}, n_{22}.

Value

Normalizing constant is returned.

Author(s)

Jon Wakefield (jonno@u.washington.edu)

References

Wakefield, J. (2010). Bayesian methods for examining Hardy-Weinberg equilibrium. Biometrics; Vol 66:257-65

See Also

DirichNormHWE, DirichNormSat, DirichSampHWE, DirichSampSat, HWEDirichBF2, TriangNormHWE

Examples

1
2
nvec <- c(88,10,2)
TriangNormHWE(nvec)