statsmodels.gam.generalized_additive_model.GLMGamResults.plot_partial_residuals

method

GLMGamResults.plot_partial_residuals(focus_exog, ax=None)

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

Parameters
focus_exogint or string

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

axAxes instance

Matplotlib Axes instance

Returns
figmatplotlib Figure

A matplotlib figure instance.