powered by
Computes Box-Cox transformation and find an optimal lambda with minimum AIC.
boxcox(y, plot = TRUE, ...)
An object of class "boxcox", which is a list with the following components:
"boxcox"
mean of original data.
variance of original data.
AIC of the model with respect to the original data.
log-likelihood of the model with respect to the original data.
transformed data with the AIC best lambda.
AIC of the model with respect to the transformed data.
log-likelihood of the model with respect to the transformed data.
a univariate time series.
logical. If TRUE (default), original data and transformed data with minimum AIC are plotted.
TRUE
graphical arguments passed to plot.boxcox.
plot.boxcox
Kitagawa, G. (2020) Introduction to Time Series Modeling with Applications in R. Chapman & Hall/CRC.
# Sunspot number data data(Sunspot) boxcox(Sunspot) # Wholesale hardware data data(WHARD) boxcox(WHARD)
Run the code above in your browser using DataLab