hwexact | R Documentation |
This function implements an exact SNP test of
Hardy-Weinberg equilibrium. It is a wrapper for snphwe
hwexact(obs.hom1, obs.hets, obs.hom2, data, loci, observed)
obs.hom1 |
Observed number of individuals homozygous for the common allele. |
obs.hets |
Observed number of heterozygous individuals. |
obs.hom2 |
Observed number of individuals homozygous for the rare allele. |
data |
If not |
loci |
If |
observed |
Column that holds the frequencies, if |
The exact p-value testing departure from Hardy-Weinberg Equilibrium, conditional on the observed relative numbers of alleles of the two types
Randall Johnson – adapted from code by Wigginton et al
Wigginton, J.E.; Cutler, D.J. & Abecasis, G.R.; A Note on exact tests of Hardy-Weinberg equilibrium; American Journal of Human Genetics, 2005, 76, 887-93
hwexact(68, 28, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.