BoxCox() returns a transformation of the input variable using a Box-Cox transformation.
InvBoxCox() reverses the transformation.
Usage
BoxCox(x, lambda)
InvBoxCox(x,lambda)
Arguments
x
a numeric vector or time series
lambda
transformation parameter
Value
Details
The Box-Cox transformation is given by
$$f_\lambda(x) =\frac{x^\lambda - 1}{\lambda}$$
if $lambda is not equal to 0$. For $lambda=0$,
$$f_0(x)=\log(x)$$.
References
Box, G. E. P. and Cox, D. R. (1964) An analysis of transformations. JRSS B26 211--246.