y
.bats(y, use.box.cox=NULL, use.trend=NULL, use.damped.trend=NULL,
seasonal.periods=NULL, use.arma.errors=TRUE, ...)
numeric
, msts
or ts
. Only univariate time series is supported.TRUE/FALSE
indicates whether to use the Box-Cox transformation or not. If NULL
then both are tried and the best fit is selected by AIC.TRUE/FALSE
indicates whether to include a trend or not. If NULL
then both are tried and the best fit is selected by AIC.TRUE/FALSE
indicates whether to include a damping parameter in the trend or not. If NULL
then both are tried and the best fit is selected by AIC.y
is a numeric then seasonal periods can be specified with this parameter.TRUE/FALSE
indicates whether to include ARMA errors or not. If NULL
then both are tried and the best fit is selected by AIC.auto.arima
when choose an ARMA(p, q) model for the errors.bats
".
The generic accessor functions fitted.values
and residuals
extract useful features of
the value returned by ets
and associated functions.fit <- bats(USAccDeaths)
plot(forecast(fit))
taylor.fit <- bats(taylor)
plot(forecast(taylor.fit))
Run the code above in your browser using DataLab