.-
help for ^genhw^
.-
Hardy-Weinberg equilibrium test
-------------------------------
^genhw^ all1 all2 [weight] [^if^ exp] [^in^ range]
[^,^ ^bin^var^]
^genhwi^ #AA #Aa #aa [^,^ ^l^abel(genotypes) ^bin^var^]
^fweight^s are allowed; see help @weights@.
Description
-----------
^genhw^ estimates allele, genotype frequencies and disequilibrium coefficients
for codominant traits and performs asymptotic Hardy-Weinberg (HW) equilibrium
tests. In the case of two alleles it also calculates an exact HW
significance probability.
^genhw^ expects the data to be in long format. That is, each observation
contains the two allele values at the locus being examined (all1 and all2).
Allele values can be numeric or string.
^genhwi^ is the immediate form of ^genhw^ using the genotypic counts on the
command line; where #AA, #Aa and #aa are the counts for the AA, Aa and aa
genotypes. Note that this immediate command only works for biallelic loci.
Options
-------
^binvar^ specifies that binomial standard errors be reported. These standard
errors are calculated assuming that the population is in Hardy-Weinberg
equilibrium. By default standard errors that do not requirer this assumption
are reported.
^label()^ specifies labels to be use in the output of the genotype frequency
table. In the case of a multiallelic locus this option is ignored.
Examples
--------
. ^genhw loc1 loc2^
. ^genhw loc1 loc2, binvar^
. ^genhwi 12 30 19 , binvar label(AA Aa aa)^
. ^genhwi 12 30 19
Also see
--------
Manual: [R] symmetry
On-line: help for @symmetry@