Description Usage Arguments Value References Examples
View source: R/fdr-sampsize-v1.0e.R
Find the p-value threshold that satisfies an FDR requirement (if such a threshold exists)
1 2 | alpha.fdr (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 |
an R function to compute statistical power |
eff.size |
effect size vector |
null.effect |
value of effect size that corresponds to the null hypothesis |
lam |
the lambda parameter in computing the pi0 (proportion of tests with a true null) estimate of Storey (2002) |
eps |
epsilon for numerical differentiation |
tol |
tolerance for bisection solution to alpha |
... |
additional agruments for the functions |
a list with the following components:
fdr |
the FDR at that alpha |
alpha |
the determined alpha |
OK |
indicates if the requirement is met |
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.fdr(fdr=0.1,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.