add.fun.t: Function to Calculate t matrix for logistic outcome with...

Description Usage Arguments Value Examples

View source: R/power_function_environment_interaction_t_matrix_eqs.R

Description

Calculates the t matrix for logistic outcome with binary environment interaction in additive model

Usage

1
add.fun.t(MAF, P_e, OR_E, OR_G, OR_GE, Case.Rate)

Arguments

MAF

Vector of minor allele frequencies

P_e

Vector of proportions of the population with exposure to the environmental effect

OR_E

Vector of environmental odds ratios to detect

OR_G

Vector of genetic odds ratios to detect

OR_GE

Vector of genetic/environmental interaction odds ratios to detect

Case.Rate

proportion of cases in the sample (cases/(cases + controls)).

Value

t matrix for all combinations of environment/outcome

Examples

1
2
add.fun.t(MAF = 0.1, P_e = 0.2, Case.Rate = 0.5,
	OR_G = 1.5, OR_E = 2, OR_GE = 1.8)

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