Learn R Programming

ops (version 1.0)

findP: Find Power Exponent

Description

findP finds the exponent for an optimal power transformation of data that is to be normalized.

Usage

findP(y, step = 0.01)

Arguments

y
a 2D matrix with x- and y-coordinates of raw data in columns 'y[,1]' and 'y[,2]'
step
an optional step size for iterating normalization exponents from the interval [0;1]. Default value is '0.01'.

Value

maxIQR
The optimal exponent obtained by maximizing the inter-quartile range
minMed
The optimal exponent obtained by minimizing the distance to the median
values
Data spaces for each exponent iterated during optimization

Details

References

Ribeca P. and Sammeth M. (under review)

See Also

filter, distance

Examples

Run this code
x=cbind(rexp(1000),rexp(1000))
p=findP(x)$maxIQR

Run the code above in your browser using DataLab