Calculates the MLE genotype and runs a chi-squared test assuming
no double reduction and no preferential pairing.
Usage
chisq_gl(gl, g1, g2)
chisq_gl4(gl, g1, g2)
Value
A list containing the chi-squared statistic, degrees of
freedom, and p-value.
Arguments
gl
A matrix of offspring genotype log-likelihoods. The rows index the
individuals and the columns index the possible genotypes. So
gl[i, k] is the offspring genotype log-likelihood for individual i and
genotype k-1.
g1
The first parent's genotype.
g2
The second parent's genotype.
Functions
chisq_gl4(): Alias for chisq_gl, for backwards compatibility.