signedrank: Power calculation for signed-rank test
Description
The signed-rank test is a nonparametric alternative to a one-sample or paired t test. This function
performs power and sample size calculations for the signed-rank test using Noether's approximation;
see Noether (1987) Sample size determination for some common nonparametric tests. JASA 82(398):645-647.
Usage
signedrank(
N = NULL,
ps = NULL,
alpha = 0.05,
power = NULL,
sides = 2,
v = FALSE
)
Value
A list of the arguments (including the computed one).
Arguments
N
The sample size; number of observations or paired differences.
ps
The probability that the sum of two values exceeds zero when the alternative hypothesis is true.
alpha
The significance level or type 1 error rate; defaults to 0.05.
power
The specified level of power.
sides
Either 1 or 2 (default) to specify a one- or two-sided hypothesis test.
v
Either TRUE for verbose output or FALSE to output computed argument only.
Details
Due to symmetry, the power for p is equal to the power for 1 - p. Therefore,
when solving for p, two values, p and 1 - p, are returned.