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 |

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)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.