# statsmodels.graphics.regressionplots.plot_ccpr¶

statsmodels.graphics.regressionplots.plot_ccpr(results, exog_idx, ax=None)[source]

Plot CCPR against one regressor.

Generates a CCPR (component and component-plus-residual) plot.

Parameters: results (result instance) – A regression results instance. exog_idx (int or string) – Exogenous, explanatory variable. If string is given, it should be the variable name that you want to use, and you can use arbitrary translations as with a formula. ax (Matplotlib AxesSubplot instance, optional) – If given, it is used to plot in instead of a new figure being created. fig – If ax is None, the created figure. Otherwise the figure to which ax is connected. Matplotlib figure instance

plot_ccpr_grid