Description Usage Arguments Value References Examples
View source: R/fdr-sampsize-v1.0e.R
Compute the average power at a specific level of FDR control for a given effect size and sample size
1 2 | fdr.power (fdr, n, pow.func, eff.size, null.effect, lam = 0.95,
eps = 1e-04, tol = 1e-04, ...)
|
fdr |
Desired FDR, scalar |
n |
sample size |
pow.func |
name of R function to compute statistical power |
eff.size |
effect size vector; will be provided as the third argument of pow.func |
null.effect |
value of effect size that corresponds to null hypothesis |
lam |
name of R function to compute statistical power |
eps |
epsilon for numerical differentiation |
tol |
tolerance for bisection solution to alpha |
... |
additional agruments for the functions |
average power (scalar) of the tests with a false null hypothesis
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 2016.
Gadbury GL, et al. (2004) Power and sample size estimation in high dimensional biology. Statistical Methods in Medical Research 13(4):325-38.
Pounds S and Cheng C (2005) Sample size determination for the false discovery rate. Bioinformatics 21(23): 4263-71.
1 2 | fdr.power(fdr=0.10,n=50,pow.func=power.twosampt,
eff.size=rep(0:1,c(900,100)),null.effect=0)
|
[1] 0.9920888
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.