statsmodels.genmod.generalized_linear_model.GLMResults.plot_partial_residuals

GLMResults.plot_partial_residuals(focus_exog, ax=None) [source]

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

Parameters:
  • focus_exog (int or string) – The column index of exog, or variable name, indicating the variable whose role in the regression is to be assessed.
  • ax (Axes instance) – Matplotlib Axes instance
Returns:

fig – A matplotlib figure instance.

Return type:

matplotlib Figure

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.genmod.generalized_linear_model.GLMResults.plot_partial_residuals.html