Description Usage Arguments Value Examples
View source: R/sample_size_function_environment_interaction.R
Calculates the power to detect an difference in means/effect size/regression coefficient, at a given sample size, N, with type 1 error rate, Alpha
1 2 3 4 5 6 7 8 9 10 11 12 13 |
power |
Vector of the desired power(s) |
Case.Rate |
proportion of cases in the sample (cases/(cases + controls)). |
k |
Vector of the number of controls per case. Either k or Case.Rate must be specified. |
MAF |
Vector of minor allele frequencies |
OR_G |
Vector of genetic odds ratios to detect |
OR_E |
Vector of environmental odds ratios to detect |
OR_GE |
Vector of genetic/environmental interaction odds ratios to detect |
P_e |
Vector of proportions of the population with exposure to the environmental effect |
Alpha |
the desired type 1 error rate(s) |
True.Model |
A vector specifying the true underlying genetic model(s): 'Dominant', 'Additive1', 'Additive2', 'Recessive' or 'All' |
Test.Model |
A vector specifying the assumed genetic model(s) used in testing: 'Dominant', 'Additive', 'Recessive' or 'All' |
A data frame including the power for all combinations of the specified parameters (Case.Rate, ES, Power, etc)
1 2 | ssc <- ss_envir.calc(P_e = 0.2, MAF = 0.1, power = 0.6, Case.Rate = 0.5, Alpha = 0.05,
OR_G = 1.5, OR_E = 2, OR_GE = 1.8, Test.Model = "All", True.Model = "All")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.