, exog_idx, fig=None)[source]

Plot regression results against one regressor.

This plots four graphs in a 2 by 2 figure: ‘endog versus exog’, ‘residuals versus exog’, ‘fitted versus exog’ and ‘fitted plus residual versus exog’

  • results (result instance) – result instance with resid, model.endog and model.exog as attributes
  • exog_idx (int) – index of regressor in exog matrix
  • fig (Matplotlib figure instance, optional) – If given, this figure is simply returned. Otherwise a new figure is created.


Return type:

matplotlib figure instance