HWAlltests: Perform all tests for Hardy-Weinberg equilibrium

HWAlltestsR 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

x.linked=FALSE indicates the marker is autosomal (default), and x.linked=TRUE indicates it resides on the X-chromosome.

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

HWLratio, HWChisq, HWExact

Examples

x <- c(298,489,213)
names(x) <- c("MM","MN","NN")
HWAlltests(x,verbose=TRUE)

HardyWeinberg documentation built on May 29, 2024, 6:17 a.m.