BCT | R Documentation |
The BCT()
function returns a transformation of the provided time
series using a Box-Cox transformation. BCT.rev()
reverses the
transformation. Wrapper functions for BoxCox
and
InvBoxCox
of the forecast
package,
respectively.
BCT(x, lambda = NULL, ...)
BCT.rev(x, lambda, ...)
x |
A numeric vector or univariate time series of class |
lambda |
Box-Cox transformation parameter. If |
... |
Additional arguments passed to the
|
If lambda
is not 0
, the Box-Cox transformation is given by
f_\lambda(x) =\frac{x^\lambda - 1}{\lambda}
If
\lambda=0
, the Box-Cox transformation is given by
f_0(x)=\log(x)
.
A vector of the same length as x containing the transformed values.
Rebecca Pontes Salles
Box, G. E. P. and Cox, D. R. (1964) An analysis of transformations. JRSS B 26 211–246.
DIF
,detrend
, MAS
,
LT
, PCT
data(CATS)
BCT(CATS[,1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.