RankSum: Wilcoxon's Rank-Sum Statistic

Description Usage Arguments Value Note Author(s)

Description

Calculates the sum of the ranks of the responses of treated units. The result is intended to be used as a test statistic in a permutation test.

Usage

1
RankSum(y, tr, tl, ...)

Arguments

y

Response variable (vector)

tr

Treatment variable (vector)

tl

The level of treatment variable (e.g., "treated" or 1) that indicates treated observations

...

Additional arguments (included for compatibility but ignored)

Value

A scalar test statistic

Note

Returns NA if there are any missing values in y or tr.

Author(s)

Devin Caughey <devin.caughey@gmail.com>


NPC documentation built on May 2, 2019, 5:07 a.m.

Related to RankSum in NPC...