rowHWEs {scrime} | R Documentation |
Rowwise Test for Hardy-Weinberg Equilibrium
Description
Tests for each row of a matrix whether the Hardy-Weinberg Equilibrium holds for the SNP represented by the row.
Usage
rowHWEs(x, levels = 1:3, affy = FALSE, check = TRUE)
Arguments
x |
a matrix in which each row represents a SNP and each column a subject,
where the SNPs can take the values specified by |
levels |
a vector of length three specifying the values with which the three
genotypes of each SNP are represented. It is assumed that the second element of
|
affy |
logical specifying whether the SNPs in |
check |
should some checks be done if, e.g., other than the specified |
Value
A list containing the values of the ChiSquare statistic for testing for deviation from HWE
(stats
) and the raw p-values (rawp
) computed by employing the ChiSquare distribution
with 1 degree of freedom.
Author(s)
Holger Schwender, holger.schwender@udo.edu