signedranks: Sum of signed ranks

Description Usage Arguments Details Value Author(s)

Description

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.

Usage

1

Arguments

x

either a numeric vector or column matrix of outcomes (see Details)

g

group assignments (see Details)

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!

Value

numeric vector of test statistics

Author(s)

Florian Klinglmueller


floatofmath/adaperm documentation built on May 16, 2019, 1:18 p.m.