ll.ge.logistic: Function to calculate MLE's for logistic models with logistic...

Description Usage Arguments Value Examples

View source: R/power_function_environment_interaction_logistic_mle.R

Description

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

Usage

1
ll.ge.logistic(t, N = NULL, power = NULL, Alpha, mod)

Arguments

t

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

N

Sample size

power

Power

Alpha

Alpha

mod

Test model

Value

A vector of logistic regression model coefficients.

Examples

1
2
3
t <- rbind(c(0.2870353, 0.07833006, 0.00435167, 0.09946088, 0.029199878, 0.0016222154),
	c(0.3609647, 0.06566994, 0.00364833, 0.06253912, 0.006800122, 0.0003777846))
ll.ge.logistic(t, N = 200, Alpha = 0.05, mod = "Dominant")

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