statsmodels.gam.generalized_additive_model.GLMGamResults.get_prediction

GLMGamResults.get_prediction(exog=None, exog_smooth=None, transform=True, **kwargs)[source]

compute prediction results

Parameters:
exogarray_like, optional

The values for which you want to predict.

exog_smootharray_like

values for the variables in the smooth terms

transformbool, optional

If transform is True, then the basis representation of the smooth term will be constructed from the provided x.

kwargs

Some models can take additional arguments or keywords, see the predict method of the model for the details.

Returns:
prediction_resultsgeneralized_linear_model.PredictionResults

The prediction results instance contains prediction and prediction variance and can on demand calculate confidence intervals and summary tables for the prediction of the mean and of new observations.