Learn R Programming

HW.pval (version 1.0)

test.rms: Computing the root-mean-square test statistic

Description

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

Usage

test.rms(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.