Learn R Programming

amen (version 1.0)

zscores: rank-based z-scores

Description

Computes the normal scores corresponding to the ranks of a data vector

Usage

zscores(y)

Arguments

y
a numeric vector

Value

  • a numeric vector

Examples

Run this code
## The function is currently defined as
zscores<-function(y)
{
 qnorm( rank(y,na.last="keep",ties.method="average")/(1+sum(!is.na(y))) )
}

Run the code above in your browser using DataLab