Learn R Programming

HW.pval (version 1.0)

test.gsq: Computing the log likelihood-ratio test statistic

Description

Calculates the Log Likelihood-Ratio test statistic between a lower-triangular matrix of genotypic counts and associated Hardy-Weinberg equilibrium model counts

Usage

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