powered by
HWAlltests performs all classical frequentists tests for Hardy-Weinberg equilibrium and lists their p-values.
HWAlltests
HWAlltests(x, verbose = TRUE, include.permutation.test = FALSE, x.linked = FALSE)
A dataframe with test statistics and p-values.
a vector with a set of genotype counts (AA, AB, BB)
print output if set to TRUE
turns on the permutation test if set to TRUE
x.linked=FALSE indicates the marker is autosomal (default), and x.linked=TRUE indicates it resides on the X-chromosome.
x.linked=FALSE
x.linked=TRUE
Jan Graffelman jan.graffelman@upc.edu
By default the permutation test is not performed in order to reduce computing time.
HWLratio, HWChisq, HWExact
HWLratio
HWChisq
HWExact
x <- c(298,489,213) names(x) <- c("MM","MN","NN") HWAlltests(x,verbose=TRUE)
Run the code above in your browser using DataLab