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

Description Usage Arguments Value Examples

View source: R/likelihood_calc_function.R

Description

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

Usage

1

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

1
2
3
recessive.ll(c(-0.3793525, -1.1395417), 
 rbind(c(0.2339079, 0.05665039, 0.009441731), 
 c(0.3285921, 0.31834961, 0.053058269)))

genpwr documentation built on March 31, 2021, 1:06 a.m.