HWExactMat {HardyWeinberg}R Documentation

Matrix version of HWExact

Description

HWExactMat executes a fast Exact test for HWE for each row in a matrix.

Usage

HWExactMat(X, ...)

Arguments

X A n times 3 matrix of genotypic counts (AA,AB,BB)
... extra arguments that are passed on to HWExact

Value

pvalvec Vector with the p-values of each test

Author(s)

Jan Graffelman jan.graffelman@upc.edu

See Also

HWExact

Examples

X <- HWData(100,10)$Xt
colnames(X) <- c("MM","MN","NN")
Results <- HWExactMat(X)
Output <- cbind(X,Results$pvalvec)
print(Output)

[Package HardyWeinberg version 1.4 Index]