Description Usage Arguments Value Examples
View source: R/likelihood_calc_function.R
Calculates the log likelihood for a given set of logistic regression coefficients under a dominant genetic model.
1 | dominant.ll(beta, t)
|
beta |
Vector of logistic regression coefficients. |
t |
A 2x3 table of joint probabilities of disease and genotype. Rows = case vs. control, columns=genotype. |
The log likelihood.
1 2 3 | dominant.ll(c(-0.3793525, -1.1395417),
rbind(c(0.2339079, 0.05665039, 0.009441731),
c(0.3285921, 0.31834961, 0.053058269)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.