Hardy-weinberg equilibrium test for control samples.
Usage
HW.test(count_11, count_12, count_22)
Arguments
count_11
a non-negative integer or vector, the frequency of genotype "allele1/allele1" in control samples.
count_12
a non-negative integer or vector, the frequency of genotype "allele1/allele2" in control samples.
count_22
a non-negative integer or vector, the frequency of genotype "allele2/allele2" in control samples.
Value
X2
statistic(s) for the Hardy-weinberg equilibrium test.
p.value
p.value(s) for the Hardy-weinberg equilibrium test.
Details
Hardy-weinberg equilibrium test states that allele and genotype frequencies in a population will remain constant
from generation to generation in the absence of other evolutionary influences.
References
Emigh, T.H. (1980 Biometrics 36(4): 627-642): A comparison of tests for Hardy-weinberg equilibrium.