powered by
This chi-squared test is run under the assumption of no double reduction and no preferential pairing.
chisq_g(x, g1, g2)chisq_g4(x, g1, g2)
chisq_g4(x, g1, g2)
A list containing the chi-squared statistic, degrees of freedom, and p-value.
Vector of observed genotype counts
Parent 1's genotype
Parent 2's genotype
chisq_g4(): Alias for chisq_g, for backwards compatibility.
chisq_g4()
Mira Thakkar and David Gerard
x <- c(1, 2, 4, 3, 0) g1 <- 2 g2 <- 2 chisq_g(x, g1, g2) x <- c(10, 25, 10, 0, 0) g1 <- 1 g2 <- 1 chisq_g(x, g1, g2)
Run the code above in your browser using DataLab