statsmodels.gam.generalized_additive_model.GLMGamResults.get_prediction¶
- GLMGamResults.get_prediction(exog=None, exog_smooth=None, transform=True, **kwargs)[source]¶
compute prediction results
- Parameters:
exog (array_like, optional) – The values for which you want to predict.
exog_smooth (array_like) – values for the variables in the smooth terms
transform (bool, 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_results – 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.
- Return type:
generalized_linear_model.PredictionResults