n.fdr.signrank {FDRsamplesize2} | R Documentation |
Sample size calculation for signed-rank tests
Description
Find the sample size needed to have a desired false discovery rate and average power for a large number of signed-rank tests.
Usage
n.fdr.signrank(fdr, pwr, p1, p2, pi0.hat = "BH")
Arguments
fdr |
desired FDR (scalar numeric) |
pwr |
desired average power (scalar numeric) |
p1 |
Pr(X>0), as in Noether (JASA 1987) |
p2 |
Pr(X+X'>0), as in Noether (JASA 1987) |
pi0.hat |
method to estimate proportion |
Value
A list with the following components:
n |
sample size estimate |
computed.avepow |
average power |
desired.avepow |
desired average power |
desired.fdr |
desired FDR |
input.pi0 |
proportion of tests with a true null hypothesis |
alpha |
fixed p-value threshold for multiple testing procedure |
n.its |
number of iteration |
max.its |
maximum number of iteration, default is 50 |
n0 |
lower limit for initial sample size range |
n1 |
upper limit for initial sample size range |
References
Noether, Gottfried E (1987) Sample size determination for some common nonparametric tests. Journal of the American Statistical Association, 82:645-647.
Examples
p1 = rep(c(0.8,0.5),c(100,900));
p2 = rep(c(0.8,0.5),c(100,900));
n.fdr.signrank(fdr = 0.1, pwr = 0.8, p1 = p1, p2 = p2, pi0.hat = "BH")