Description Usage Arguments Details Value References Examples
View source: R/fdr-sampsize-v1.0e.R
Compute the anticipated FDR for given sample size, p-value threshold, and effect size.
1 2 | afdr (n, alpha, pow.func, eff.size, lam = 0.95, eps = 1e-04,
...)
|
n |
sample size (scalar) |
alpha |
p-value cut-off (scalar) |
pow.func |
an R function that computes statistical power |
eff.size |
effect size vector |
lam |
p-value at which to evaluate ensemble PDF (for pi.star) |
eps |
epsilon for numerical differentiation |
... |
additional agruments for the functions |
The aFDR is defined by Pounds and Cheng (2005) as the anticipated false discovery rate incurred by performing all tests with p-value threshold alpha given the same size effect size and power function.
the aFDR
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 | afdr(n=50,alpha=0.01,pow.func=power.twosampt,eff.size=rep(c(1,0),c(100,900)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.