powered by
Calculates the t matrix for logistic outcome with binary environment interaction in additive model
add.fun.t(MAF, P_e, OR_E, OR_G, OR_GE, Case.Rate)
Vector of minor allele frequencies
Vector of proportions of the population with exposure to the environmental effect
Vector of environmental odds ratios to detect
Vector of genetic odds ratios to detect
Vector of genetic/environmental interaction odds ratios to detect
proportion of cases in the sample (cases/(cases + controls)).
t matrix for all combinations of environment/outcome
# NOT RUN { 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) # }
Run the code above in your browser using DataLab