srank: Sequential Rank

Description Usage Arguments Value Examples

View source: R/UnivariateNormalScores.R

Description

Get the sequential rank of observations (X) relative to previous observations (Y).

Usage

1
srank(X, Y = NULL)

Arguments

X

vector. New observations to obtain the N¡normal scores.

Y

vector. If Y is not defined (no previous observation available, NULL), NS is relative to X. Default NULL.

Value

vector. Sequentil Ranks for the X observations. If ties occurs, average of the ranks are used.

Examples

1
2
X <- c(30, 35, 45)
srank(X)

SNSchart documentation built on April 7, 2021, 9:07 a.m.