Description Usage Arguments Value References Examples
View source: R/fdr-sampsize-v1.0e.R
Find p-value cut-off that yields desired average power given n and effect size
1 2 | alpha.power (ave.pow, n, pow.func, eff.size, null.effect, tol = 1e-06,
...)
|
ave.pow |
desired average power (scalar) |
n |
sample size |
pow.func |
name of R function to compute statistical power |
eff.size |
effect size vector |
null.effect |
value of effect size that corresponds to null hypothesis |
tol |
tolerance for bisection solution to alpha |
... |
additional agruments for the functions |
a list with the following components:
alpha |
desired value of alpha |
ave.pow |
average power at that alpha |
A Onar-Thomas, S Pounds. "FDRsampsize: An R package to Perform Generalized Power and Sample Size Calculations for Planning Studies that use the False Discovery Rate to Measure Significance", Manuscript 2015. Pounds, Stan, and Cheng Cheng. "Sample size determination for the false discovery rate." Bioinformatics 21.23 (2005): 4263-4271.
Jung, Sin-Ho. "Sample size for FDR-control in microarray data analysis." Bioinformatics 21.14 (2005): 3097-3104.
1 2 3 | alpha.power(ave.pow=0.8,n=50,pow.func=power.twosampt,
eff.size=rep(0:1,c(900,100)),null.effect=0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.