powered by
Convenience function to calculate the log likelihood of a specified model.
calc.like(beta, t, model)
Vector of logistic regression coefficients.
A 2x3 table of joint probabilities of disease and genotype. Rows = case vs. control, columns=genotype.
The genetic model in the logistic regression: "Dominant", "Additive", "Recessive", "2df" or "null"
The log likelihood.
# NOT RUN { t <- rbind(c(0.2967437, 0.1806723, 0.02258404), c(0.3432563, 0.1393277, 0.01741596)) calc.like(logistic.mles(t, "Dominant"), t, model="Dominant") # }
Run the code above in your browser using DataLab