View source: R/forecast_EXPAR.R
forecast_EXPAR | R Documentation |
Generates out-of-sample forecasts from any fitted EXPAR model.
forecast_EXPAR(EXPAR_model, h = 1)
EXPAR_model |
A fitted EXPAR model. |
h |
Number of periods for forecasting. Defaults to one-step ahead forecast. |
Forecasts from EXPAR model are generated iteratively using mathematical form of EXPAR model, considering fitted values and residuals while putting future error terms as zero.
Vector of forecasted values
datats <- ts(egg_price_index[,3], start = c(2013, 1), frequency = 12)
best_model = best_EXPAR(datats)
forecast_EXPAR(best_model, h = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.