powered by
Calculates the log likelihood for a given set of logistic regression coefficients under an additive genetic model.
additive.ll(beta, t)
Vector of logistic regression coefficients.
A 2x3 table of joint probabilities of disease and genotype. Rows = case vs. control, columns=genotype.
The log likelihood.
# NOT RUN { additive.ll(c(-0.3793525, -1.1395417), rbind(c(0.2339079, 0.05665039, 0.009441731), c(0.3285921, 0.31834961, 0.053058269))) # }
Run the code above in your browser using DataLab