srank {SNSchart}R Documentation

Sequential Rank

Description

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

Usage

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

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

[Package SNSchart version 1.4.0 Index]