Learn R Programming

HW.pval (version 1.0)

create.model: Creating the Hardy-Weinberg model distribution from a given lower-triangular array of genotype counts

Description

Creates maximum-likelihood Hardy-Weinberg equilibrium model distribution from the observed genotype count matrix.

Usage

create.model(observed, n)

Arguments

observed
The genotype count matrix from which the Hardy-Weinberg equilibrium model distribution is created
n
Total number of genotypes.

Details

This function is called by HW.pval() and HW.plain() to create a model distribution.

References

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

See Also

HW.pval, HW.plain