Learn R Programming

FDRsamplesize2 (version 0.2.0)

average.power.signtest: Compute average power of many sign tests

Description

Compute average power of many sign tests

Usage

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

Value

Average power estimate for multiple testing procedure

Arguments

n

sample size (scalar)

alpha

p-value threshold (scalar)

p

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

See Also

power.signtest for more details about power calculation of sign test. The power calculation is based on asymptotic normal approximation.

Examples

Run this code
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