BoxCox | R Documentation |
BoxCox() returns a transformation of the input variable using a Box-Cox transformation. InvBoxCox() reverses the transformation.
BoxCox(x, lambda)
x |
a numeric vector or time series |
lambda |
transformation parameter |
The Box-Cox transformation is given by
f_\lambda(x) =\frac{x^\lambda -
1}{\lambda}
if
\lambda\ne0
. For \lambda=0
,
f_0(x) = \log(x).
a numeric vector of the same length as x.
Rob J Hyndman
Box, G. E. P. and Cox, D. R. (1964) An analysis of transformations. JRSS B 26 211–246.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.