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

Description Usage Arguments Details Author(s) References See Also

View source: R/test.gsq.R

Description

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

Usage

1
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().

Author(s)

Shubhodeep Mukherji <[email protected]>

References

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

See Also

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


HW.pval documentation built on May 30, 2017, 4:47 a.m.