powered by
Predicted values based on a GRNN model for time series forecasting.
# S3 method for grnnForecast predict(object, h, ...)
a grnnForecast object with the prediction and information about the GRNN model, see the documentation of grnn_forecasting
grnnForecast
grnn_forecasting
for the structure of grnnForecast objects.
a grnnForecast object obtained by a call to the grnn_forecasting function.
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.
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
Run the code above in your browser using DataLab