powered by
This is under the two parameter model.
like_gknown_2(x, alpha, xi1, xi2, g1, g2, log_p = TRUE, pen = 0)
The (log) likelihood.
A vector of length 5. x[i] is the count of individuals with genotype i-1.
x[i]
i-1
The double reduction rate.
The preferential pairing parameter of parent 1.
The preferential pairing parameter of parent 2.
Parent 1's genotype.
Parent 2's genotype.
A logical. Should we return the log likelihood or not?
A tiny penalty to help with numerical stability
David Gerard
x <- c(1, 4, 5, 3, 1) alpha <- 0.01 xi1 <- 0.5 xi2 <- 0.3 g1 <- 1 g2 <- 2 like_gknown_2( x = x, alpha = alpha, xi1 = xi1, xi2 = xi2, g1 = g1, g2 = g2)
Run the code above in your browser using DataLab