fdr.power: Compute the average power at a specific FDR control level

Description Usage Arguments Value References Examples

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

Description

Compute the average power at a specific level of FDR control for a given effect size and sample size

Usage

1
2
fdr.power (fdr, n, pow.func, eff.size, null.effect, lam = 0.95, 
    eps = 1e-04, tol = 1e-04, ...) 

Arguments

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

Value

average power (scalar) of the tests with a false null hypothesis

References

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.

Examples

1
2
 fdr.power(fdr=0.10,n=50,pow.func=power.twosampt,
           eff.size=rep(0:1,c(900,100)),null.effect=0)

Example output

[1] 0.9920888

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