powered by
Calculates the detectable effect size/regression coefficient, at a given sample size, N, and power, with type 1 error rate, Alpha
es.calc.linear(power = NULL, N = NULL, MAF = NULL, sd_y = NULL, Alpha = 0.05, True.Model = "All", Test.Model = "All")
Vector of the desired power(s)
Vector of the desired sample size(s)
Vector of minor allele frequencies
Standard deviation of the outcome in the population (ignoring genotype). Either sd_y_x or sd_y must be specified.
the desired type 1 error rate(s)
A vector specifying the true underlying genetic model(s): 'Dominant', 'Additive', 'Recessive' or 'All'
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)
# NOT RUN { es <- es.calc.linear(N=1000,power=0.8, MAF=0.1, sd_y = 1, Alpha=0.05, True.Model='All', Test.Model='All') # }
Run the code above in your browser using DataLab