logistic.mles: Function to calculate MLE's for logistic models

Description Usage Arguments Value Examples

View source: R/logistic_mle_function.R

Description

Finds the maximum likelihood estimates for a given 2x3 table under the specified genetic model.

Usage

1
logistic.mles(t, model)

Arguments

t

A 2x3 table of the joint probabilities of disease and genotype. Rows are case vs. control and columns are genotypes.

model

The assumed genetic model(s) used in testing: 'Dominant', 'Additive', 'Recessive'

Value

A vector of logistic regression model coefficients.

Examples

1
2
logistic.mles(rbind(c(0.2967437, 0.1806723, 0.02258404), 
 c(0.3432563, 0.1393277, 0.01741596)), "Dominant")

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