average.power.ranksum: Compute average power of rank-sum tests

View source: R/average_power.R

average.power.ranksumR Documentation

Compute average power of rank-sum tests

Description

Compute average power of rank-sum tests

Usage

average.power.ranksum(n, alpha, p)

Arguments

n

sample size (scalar)

alpha

p-value threshold (scalar)

p

Pr(Y>X), as in Noether (JASA 1987)

Value

Average power estimate for multiple testing procedure

See Also

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

Examples

p = rep(c(0.8,0.5),c(100,900));
average.power.ranksum(n = 50, alpha = 0.05, p=p)

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