afdr: Compute the anticipated FDR

Description Usage Arguments Details Value References Examples

View source: R/fdr-sampsize-v1.0e.R

Description

Compute the anticipated FDR for given sample size, p-value threshold, and effect size.

Usage

1
2
afdr (n, alpha, pow.func, eff.size, lam = 0.95, eps = 1e-04, 
    ...) 

Arguments

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

Details

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.

Value

the aFDR

References

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.

Examples

1
2
 afdr(n=50,alpha=0.01,pow.func=power.twosampt,eff.size=rep(c(1,0),c(100,900)))
 

FDRsampsize documentation built on May 2, 2019, 9:14 a.m.