Learn R Programming

HardyWeinberg (version 1.7.8)

HWExactMat: Matrix version of HWExact

Description

Function HWExactMat is deprecated; use HWExactStats instead.

Usage

HWExactMat(X, ...)

Value

pvalvec

Vector with the p-values of each test

Arguments

X

A n times 3 matrix of genotypic counts (AA,AB,BB)

...

extra arguments that are passed on to HWExact

Author

Jan Graffelman jan.graffelman@upc.edu

See Also

HWExact HWExactStats

Examples

Run this code
X <- HWData(100,100)
colnames(X) <- c("MM","MN","NN")
Results <- HWExactMat(X)
Output <- cbind(X,Results)
print(Output)

Run the code above in your browser using DataLab