u_scale: Rank uniformization

Description Usage Arguments Value

View source: R/diagnostic.R

Description

Compute rank uniformization 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, uniformize ranks to scale [1/(2S), 1-1/(2S)], where S is the the number of values.

Usage

1

Arguments

x

A numeric array of values.

Value

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


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