fitted.bats

0th

Percentile

h-step in-sample forecasts using bats models

Returns h-step forecasts for the data used in fitting the bats model.

Keywords
ts
Usage
"fitted"(object, h=1, ...)
Arguments
object
An object of class "bats". Usually the result of a call to bats.
h
The number of steps to forecast ahead.
...
Other arguments.
Value

See Also

forecast.bats.

Aliases
  • fitted.bats
Examples
plot(WWWusage)
lines(fitted(fit), col='red')
lines(fitted(fit, h=2), col='green')
lines(fitted(fit, h=3), col='blue')
legend("topleft", legend=paste("h =",1:3), col=2:4, lty=1)
Documentation reproduced from package forecast, version 7.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.