to.uniform {tiger}R Documentation

Transform data to uniform distribution

Description

Transform data to uniform distribution. Optionally, a set of values can be transformed against a reference set of data.

Usage

to.uniform(ref, val = NA)

Arguments

ref Set of values that determince the transformation
val Values to be transformed

Details

If values is NA, the reference set itself will be transformed.

Value

Vector with transformed values.

Author(s)

Dominik Reusser

Examples

   a <- rnorm(100)
   hist(a)
   b <- to.uniform(a)
   hist(b)
   c <- to.uniform(ref=a, val=c(-0.5,0,0.5))

[Package tiger version 0.2 Index]