y, as described in De Livera, Hyndman & Snyder (2011). Parallel processing is used by default to speed up the computations.tbats(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 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.tbats. 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.)c("tbats", "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 TBATS(omega, p,q, phi, tbats.components.## Not run:
# fit <- tbats(USAccDeaths)
# plot(forecast(fit))
#
# taylor.fit <- tbats(taylor)
# plot(forecast(taylor.fit))## End(Not run)
Run the code above in your browser using DataLab