y
, as described in De Livera, Hyndman & Snyder (2011). Parallel processing is used by default to speed up the computations.bats(y, use.box.cox=NULL, use.trend=NULL, use.damped.trend=NULL, seasonal.periods=NULL, use.arma.errors=TRUE, use.parallel=length(y)>1000, num.cores=2, bc.lower=0, bc.upper=1, model=NULL, ...)
numeric
, msts
or ts
. Only univariate time series are 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 TRUE
the best fit is selected by AIC. If FALSE
then the selection algorithm does not consider ARMA errors.TRUE/FALSE
indicates whether or not to use parallel processing.NULL
then the number of logical cores is detected and all available cores are used.bats
. If model is passed, this same model is fitted to
y
without re-estimating any parameters.auto.arima
when choose an ARMA(p, q) model for the errors. (Note that xreg will be ignored, as will any arguments concerning seasonality and differencing, but arguments controlling the values of p and q will be used.)bats
". The generic accessor functions fitted.values
and residuals
extract useful features of
the value returned by bats
and associated functions. The fitted model is designated BATS(omega, p,q, phi, m1,...mJ) where omega is the Box-Cox parameter and phi is the damping parameter; the error is modelled as an ARMA(p,q) process and m1,...,mJ list the seasonal periods used in the model.## Not run:
# fit <- bats(USAccDeaths)
# plot(forecast(fit))
#
# taylor.fit <- bats(taylor)
# plot(forecast(taylor.fit))## End(Not run)
Run the code above in your browser using DataLab