Learn R Programming

FDRsampsize (version 1.0)

alpha.power: Find the p-value threshold that gives a specified average power

Description

Find p-value cut-off that yields desired average power given n and effect size

Usage

alpha.power (ave.pow, n, pow.func, eff.size, null.effect, tol = 1e-06, ...)

Arguments

ave.pow
desired average power (scalar)
n
sample size
pow.func
name of R function to compute statistical power
eff.size
effect size vector
null.effect
value of effect size that corresponds to null hypothesis
tol
tolerance for bisection solution to alpha
...
additional agruments for the functions

Value

alpha
desired value of alpha
ave.pow
average power at that alpha

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 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.

Examples

Run this code
 alpha.power(ave.pow=0.8,n=50,pow.func=power.twosampt,
             eff.size=rep(0:1,c(900,100)),null.effect=0)
 

Run the code above in your browser using DataLab