Skip to contents

Computes rank scores for rank-based test statistics. Supports Wilcoxon, Stephenson, and Polynomial rank scores.

Usage

rank_score(
  n,
  method.list = list(name = "Polynomial", r, std = TRUE, scale = FALSE)
)

Arguments

n

Number of units.

method.list

A list specifying the scoring method:

  • name: "Wilcoxon", "Stephenson", or "Polynomial"

  • s: (for Stephenson) the parameter s

  • r: (for Polynomial) the power parameter

  • std: (for Polynomial) logical, use Puri(1965) normalization

  • scale: logical, standardize scores to mean 0 and sd 1

Value

A numeric vector of length n containing the rank scores.

Details

Polynomial scores optionally use Puri(1965) normalization. Stephenson scores use binomial coefficients. Wilcoxon scores are simply the ranks 1 to n.