.- help for ^genhw^ (STB-48: sg110) .- 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 or data of completely known genotypes, and performs asymptotic Hardy-Weinberg (HW) equilibrium tests. In the case of two alleles it also calculates an exact HW significance probability. ^genhw^ expects each observation to contain the values of the two alleles 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 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 require this assumption are reported. ^label^ specifies labels to be used in the output of the genotype frequency table. This option is only valid for the immediate form of the command. Examples -------- . ^genhw a1 a2^ . ^genhw a1 a2, binvar^ . ^genhwi 12 30 19 , binvar label(AA Aa aa)^ . ^genhwi 12 30 19 Author ------ Mario Cleves Stata Corporation mcleves@@stata.com Also see -------- STB: STB-48 sg110 Manual: [R] symmetry On-line: help for @symmetry@