statsmodels.gam.generalized_additive_model.GLMGamResults.plot_partial_residuals

GLMGamResults.plot_partial_residuals(focus_exog, ax=None)

Create a partial residual, or ‘component plus residual’ plot for a fitted regression model.

Parameters:
focus_exogint or str

The column index of exog, or variable name, indicating the variable whose role in the regression is to be assessed.

ax: Axes

Matplotlib Axes instance

Returns:
Figure

A matplotlib figure instance.


Last update: Nov 14, 2024