df2.ll {genpwr}R Documentation

Function to Calculate 2df Log Likelihood for a Logistic Regression Model

Description

Calculates the log likelihood for a given set of logistic regression coefficients under an unspecificed/2df genetic model.

Usage

df2.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

df2.ll(c(-0.3793525, -1.1395417), 
 rbind(c(0.2339079, 0.05665039, 0.009441731), 
 c(0.3285921, 0.31834961, 0.053058269)))


[Package genpwr version 1.0.4 Index]