View source: R/average_power.R
average.power.signrank | R Documentation |
Compute average power of many signed-rank tests
average.power.signrank(n, alpha, p1, p2)
n |
sample size (scalar) |
alpha |
p-value threshold (scalar) |
p1 |
Pr(X>0), as in Noether (JASA 1987) |
p2 |
Pr(X+X'>0), as in Noether (JASA 1987) |
Average power estimate for multiple testing procedure
power.signrank
for more details about power calculation of signed-rank test. The power calculation is based on asymptotic normal approximation.
p1 = rep(c(0.8,0.5),c(100,900));
p2 = rep(c(0.8,0.5),c(100,900));
average.power.signrank(n = 50, alpha = 0.05, p1 = p1, p2 = p2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.