forecast.adam | R Documentation |
Function produces conditional expectation (point forecasts) and prediction intervals for the estimated model.
## S3 method for class 'adam'
forecast(object, h = 10, newdata = NULL,
occurrence = NULL, interval = c("none", "prediction", "confidence",
"simulated", "approximate", "semiparametric", "nonparametric", "empirical",
"complete"), level = 0.95, side = c("both", "upper", "lower"),
cumulative = FALSE, nsim = NULL, scenarios = FALSE, ...)
## S3 method for class 'smooth'
forecast(object, h = 10, interval = c("parametric",
"semiparametric", "nonparametric", "none"), level = 0.95,
side = c("both", "upper", "lower"), ...)
## S3 method for class 'oes'
forecast(object, h = 10, ...)
## S3 method for class 'msdecompose'
forecast(object, h = 10, interval = c("parametric",
"semiparametric", "nonparametric", "none"), level = 0.95, model = NULL,
...)
object |
Time series model for which forecasts are required. |
h |
Forecast horizon. |
newdata |
The new data needed in order to produce forecasts. |
occurrence |
The vector containing the future occurrence variable (values in [0,1]), if it is known. |
interval |
What type of mechanism to use for interval construction.
the recommended option is |
level |
Confidence level. Defines width of prediction interval. |
side |
Defines, whether to provide |
cumulative |
If |
nsim |
Number of iterations to do in cases of |
scenarios |
Binary, defining whether to return scenarios produced via
simulations or not. Only works if |
... |
Other arguments accepted by either es, ces, gum or ssarima. |
model |
The type of ETS model to fit on the decomposed trend. Only applicable to
"msdecompose" class. This is then returned in parameter "esmodel". If |
By default the function will generate conditional expectations from the estimated model and will also produce a variety of prediction intervals based on user preferences.
Returns object of class "smooth.forecast", which contains:
model
- the estimated model (ES / CES / GUM / SSARIMA).
method
- the name of the estimated model (ES / CES / GUM / SSARIMA).
forecast
aka mean
- point forecasts of the model
(conditional mean).
lower
- lower bound of prediction interval.
upper
- upper bound of prediction interval.
level
- confidence level.
interval
- binary variable (whether interval were produced or not).
scenarios
- in case of forecast.adam()
and
interval="simulated"
returns matrix with scenarios (future paths) that were
used in simulations.
Ivan Svetunkov, ivan@svetunkov.ru
Hyndman, R.J., Koehler, A.B., Ord, J.K., and Snyder, R.D. (2008) Forecasting with exponential smoothing: the state space approach, Springer-Verlag.
forecast
ourModel <- ces(rnorm(100,0,1),h=10)
forecast(ourModel,h=10)
forecast(ourModel,h=10,interval=TRUE)
plot(forecast(ourModel,h=10,interval=TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.