DirichNormHWE: Evaluates the normalizing constant under the HWE model, with...

Description Usage Arguments Value Author(s) References See Also Examples

Description

Function to evaluate the normalizing constant given a conjugate Dirichlet prior and the HWE model.

Usage

1
DirichNormHWE(nvec, bvec0)

Arguments

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.

Value

The normalizing constant.

Author(s)

Jon Wakefield (jonno@u.washington).

References

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

See Also

DirichNormSat

Examples

1
2


Search within the HWEBayes package
Search all R packages, documentation and source code

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

Please suggest features or report bugs with the GitHub issue tracker.

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