Learn R Programming

HW.pval (version 1.0)

test.chisq: Computing the chi-square test statistic

Description

Calculates the Chi-Square test statistic between a lower-triangular matrix of genotypic counts and associated Hardy-Weinberg equilibrium model counts

Usage

test.chisq(observed, expected)

Arguments

observed
Matrix of observed genotypic counts
expected
Matrix of model genotypic counts

Details

Called on by HW.pval(), HW.plain(), and HW.cond().

References

"Testing Hardy-Weinberg equilibrium with a simple root-mean-square statistic," by Rachel Ward

See Also

HW.pval, HW.plain, and HW.cond.