r_scale: Rank values

Description Usage Arguments Value

View source: R/diagnostic.R

Description

Compute ranks for a numeric array. First replace each value by its rank. Average rank for ties are used to conserve the number of unique values of discrete quantities. Second, normalize ranks via the inverse normal transformation.

Usage

1

Arguments

x

A numeric array of values.

Value

A numeric array of ranked values with the same size as input.


weiyaw/flexss documentation built on June 16, 2021, 7:48 a.m.