signedrank | R Documentation |
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.
signedrank(
N = NULL,
ps = NULL,
alpha = 0.05,
power = NULL,
sides = 2,
v = FALSE
)
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. |
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.
A list of the arguments (including the computed one).
signedrank(N = 20, ps = 0.87, power = NULL, sides = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.