Learn R Programming

genpwr (version 1.0.2)

recessive.ll: Function to Calculate Recessive Log Likelihood for a Logistic Regression Model

Description

Calculates the log likelihood for a given set of logistic regression coefficients under a recessive genetic model.

Usage

recessive.ll(beta, t)

Arguments

beta

Vector of logistic regression coefficients.

t

A 2x3 table of joint probabilities of disease and genotype. Rows = case vs. control, columns=genotype.

Value

The log likelihood.

Examples

Run this code
# NOT RUN {
recessive.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