Learn R Programming

PhenStat (version 2.2.0)

transformValues: Method "transformValues"

Description

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

Usage

transformValues(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
    transformValues(c(0.1,38,0.5),-0.7,0)

Run the code above in your browser using DataLab