average.power.signrank: Compute average power of many signed-rank tests

View source: R/average_power.R

average.power.signrankR Documentation

Compute average power of many signed-rank tests

Description

Compute average power of many signed-rank tests

Usage

average.power.signrank(n, alpha, p1, p2)

Arguments

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)

Value

Average power estimate for multiple testing procedure

See Also

power.signrank for more details about power calculation of signed-rank test. The power calculation is based on asymptotic normal approximation.

Examples

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)

FDRsamplesize2 documentation built on May 29, 2024, 7:12 a.m.