powered by
Compute average power of many sign tests
average.power.signtest(n, alpha, p)
Average power estimate for multiple testing procedure
sample size (scalar)
p-value threshold (scalar)
Pr(Y>X), as in Noether (JASA 1987)
power.signtest for more details about power calculation of sign test. The power calculation is based on asymptotic normal approximation.
power.signtest
p = rep(c(0.8,0.5),c(100,900)); average.power.signtest(n = 50, alpha = 0.05, p=p)
Run the code above in your browser using DataLab