Description Usage Arguments Details Value Author(s)
Sum of signed ranks, equivalent to the wilcoxon signed rank test. Note that we do count the ranks of zero differences! Since the number of zeros (in the observations) is fixed for all sign flips the test decision will be identical with that of the typical Wilcoxon signed-rank statistic.
1 | signedranks(x, g)
|
x |
either a numeric vector or column matrix of outcomes (see Details) |
g |
group assignments (see Details) |
Group assignments can be passed via g
using either a numeric/integer factor, vector, or matrix. All elements with values below or equal to zero are treated as belonging to the control, all above as belonging to the treatment group.
If either x or g are passed as matrices test statistics each computed for each column of outcomes or treatment assignments. Passing both as matrices does not work!
numeric vector of test statistics
Florian Klinglmueller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.