null.ll {genpwr}R Documentation

Function to Calculate Null Log Likelihood for a Logistic Regression Model

Description

Calculates the log likelihood for a given set of logistic regression coefficients under the null.

Usage

null.ll(t)

Arguments

t

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

Value

The log likelihood.

Examples

null.ll(rbind(c(0.2339079, 0.05665039, 0.009441731), 
 c(0.3285921, 0.31834961, 0.053058269)))


[Package genpwr version 1.0.4 Index]