hwe | R Documentation |
This function tests for Hardy-Weinberg Equilibrium using the either the chi-square approximation or a permutation approach.
hwe(x, mode = c("Chi")[1], supress_warnings = FALSE)
x |
A |
mode |
The way in which the probabilities are estimated. Possible values include 'Chi': Chi-square approximation & 'Permute': A permutation approach |
supress_warnings |
A flag that prevents sample size warnings from being displayed (often helpful if you are simulating data sets for permutation) |
A data.frame
with columns for Locus, Chi (the stat), df, and Prob.
Rodney J. Dyer rjdyer@vcu.edu
data(arapat)
sonora <- arapat[ arapat$Species=="Mainland",]
hwe( sonora )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.