predict.grnnForecast {tsfgrnn} | R Documentation |
Predicted values based on a GRNN model for time series forecasting.
## S3 method for class 'grnnForecast' predict(object, h, ...)
object |
a |
h |
an integer. The forecasting horizon. |
... |
further arguments passed to or from other methods. |
If the models uses the MIMO strategy for multiple-step ahead prediction, the forecasting horizon is fixed to the model forecasting horizon.
a grnnForecast
object with the prediction and information
about the GRNN model, see the documentation of grnn_forecasting
for the structure of grnnForecast
objects.
pred <- grnn_forecasting(UKgas, h = 4, msas = "MIMO") new_pred <- predict(pred, h = 4) print(new_pred$prediction) plot(new_pred) # To see a plot with the forecast