statsmodels.tsa.ar_model.AutoRegResults.forecast#
- AutoRegResults.forecast(steps=1, exog=None)[source]#
Out-of-sample forecasts
- Parameters:
- steps
int,str,ordatetime,optional If an integer, the number of steps to forecast from the end of the sample. Can also be a date string to parse or a datetime type. However, if the dates index does not have a fixed frequency, steps must be an integer. The default is 1.
- exogarray_like,
optional Exogenous values to use out-of-sample. Must have same number of columns as original exog data and at least steps rows
- steps
- Returns:
See also
AutoRegResults.predictIn- and out-of-sample predictions
AutoRegResults.get_predictionIn- and out-of-sample predictions and confidence intervals