Learn R Programming

PhenStat (version 2.6.0)

performTransformation: Method "performTransformation"

Description

Transforms the given vector of values according to the lambda value: log transformation if the lambda is 0, power transformation otherwise

Usage

performTransformation(values, lambda, scaleShift)

Arguments

values
vector of values to reverse
lambda
lambda value of Box-Cox transformation
scaleShift
sclae shift value of Box-Cox transformation

Value

Returns values transformed according to Box-Cox rules.

Examples

Run this code
    performTransformation(c(0.1,38,0.5),-0.7,0)

Run the code above in your browser using DataLab