HWExactMat: Matrix version of HWExact

Description Usage Arguments Value Author(s) See Also Examples

View source: R/HWExactMat.R

Description

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

Usage

1

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 [email protected]

See Also

HWExact

Examples

1
2
3
4
5
X <- HWData(100,10)
colnames(X) <- c("MM","MN","NN")
Results <- HWExactMat(X)
Output <- cbind(X,Results$pvalvec)
print(Output)

HardyWeinberg documentation built on May 29, 2017, 4:26 p.m.