srank: Sequential Rank

View source: R/UnivariateNormalScores.R

srankR 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)

LuisBenavides/SNS.test documentation built on June 25, 2022, 11:52 p.m.