Forecast-class {lmForc} | R Documentation |
S4 class for storing forecasts
Description
An S4 class for storing forecasts. An object of the Forecast class has equal length vectors that contain the time the forecast was made, the future time being forecasted, the forecast, and realized values if available. Optionally includes the number of periods ahead being forecasted.
Slots
origin
A vector of any class representing the time when the forecast was made.
future
A vector of any class representing the time that is being forecasted, i.e. when the forecast will be realized.
forecast
A numeric vector of forecasts.
realized
Optional numeric vector of realized values, i.e. the true value at the future time.
h_ahead
Optional length-one object representing the number of periods ahead being forecasted.
See Also
For a detailed example see the help vignette:
vignette("lmForc", package = "lmForc")
[Package lmForc version 0.1.0 Index]