HWAlltests {HardyWeinberg} | R Documentation |
Perform all tests for Hardy-Weinberg equilibrium
Description
HWAlltests
performs all classical frequentists tests for
Hardy-Weinberg equilibrium and lists their p-values.
Usage
HWAlltests(x, verbose = TRUE, include.permutation.test = FALSE, x.linked = FALSE)
Arguments
x |
a vector with a set of genotype counts (AA, AB, BB) |
verbose |
print output if set to TRUE |
include.permutation.test |
turns on the permutation test if set to TRUE |
x.linked |
|
Details
By default the permutation test is not performed in order to reduce computing time.
Value
A dataframe with test statistics and p-values.
Author(s)
Jan Graffelman jan.graffelman@upc.edu
See Also
Examples
x <- c(298,489,213)
names(x) <- c("MM","MN","NN")
HWAlltests(x,verbose=TRUE)
[Package HardyWeinberg version 1.7.8 Index]