Description Usage Arguments Value References Examples
View source: R/fdr-sampsize-v1.0e.R
Compute average power for given sample size, effect size, and p-value threshold
1 | average.power (n, alpha, pow.func, eff.size, null.effect, ...)
|
n |
sample size |
alpha |
p-value cut off (scalar) |
pow.func |
an R function to compute statistical power |
eff.size |
effect size vector |
null.effect |
value of effect size that corresponds to null hypothesis |
... |
additional agruments for the functions |
average power (scalar)
Pounds, Stan, and Cheng Cheng. "Sample size determination for the false discovery rate." Bioinformatics 21.23 (2005): 4263-4271. Gadbury GL, et al. (2004) Power and sample size estimation in high dimensional biology. Statistical Methods in Medical Research 13(4):325-38. Jung, Sin-Ho. "Sample size for FDR-control in microarray data analysis." Bioinformatics 21.14 (2005): 3097-3104.
1 2 3 | average.power(n=50,alpha=0.01,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.