HWChisqMat: Matrix version of HWChisq

View source: R/HWChisqMat.R

HWChisqMatR Documentation

Matrix version of HWChisq

Description

Function HWChisqMat executes the Chisquare test for HWE for each row in a matrix. This function is deprecated and it is better to use the faster HWChisqStats instead.

Usage

HWChisqMat(X, ...)

Arguments

X

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

...

extra arguments that are passed on to HWChisqStats

Value

a vector with chi-square statistics or p-values

Author(s)

Jan Graffelman jan.graffelman@upc.edu

See Also

HWChisq, HWChisqStats

Examples

X <- HWData(100,100)
colnames(X) <- c("MM","MN","NN")
Results <- HWChisqMat(X)

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