Learn R Programming

FDRsampsize (version 1.0)

pi.star: Compute the anticipated null proportion estimate

Description

Compute an approximation of the expected value of the null proportion estimate given the sample size and effect size.

Usage

pi.star (n, pow.func, eff.size, lam = 0.95, eps = 1e-04, ...)

Arguments

n
sample size
pow.func
an R function to compute statistical power
eff.size
effect size vector
lam
p-value at which to numerically evaluate p-value pdf (scalar)
eps
epsilon for numerical differentiation
...
additional agruments for the functions

Value

References

#> Pounds, Stan, and Cheng Cheng. "Sample size determination for the false discovery rate." Bioinformatics 21.23 (2005): 4263-4271.