Description Usage Arguments Value Examples
#' Four measures of fit to Hardy-Weinberg for a given set of genotype counts may be computed.
observedProb The probability of the observed set under the HW null and with the allele counts fixed.
observedLLR The log-likelihood ratio of the observed set
observedU The observed U-score. Positive values indicate an excess of homozygotes and negative ones imply too many heterozygotes
observedX2 The classical “chi-squared” statistic
| 1 2 3 4 5 6 7 | observedProb(c)
observedLLR(c)
observedU(c)
observedX2(c, returnExpected = F)
 | 
| c | Matrix of observed genotype counts. Each number should be a non-negative integer, and matrix is k x k. | 
| returnExpected | Used in  | 
the observed statistic
| 1 2 | t <- vec.to.matrix(c(0,3,1,5,18,1,3,7,5,2))
observedStats <- c(observedProb(t), observedLLR(t), observedU(t), observedX2(t))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.