mqr.plot.regression.

influence#

mqr.plot.regression.influence(result, influence_stat, ax, bar_kws=None)#

Plot a bar graph of an influence statistic onto a twin axis of ax.

Parameters:
resultstatsmodels.regression.linear_model.RegressionResults

Result of calling fit on a statsmodel linear regression model.

influence_stat: {‘cooks_dist’, ‘bonferroni’}

Plot this influence statistic for each residual as a bar.

axmatplotlib.axes.Axes

Axes from which the twin axes will be created for the plot.

bar_kwsdict, optional

Keyword arguments passed to matplotlib.pyplot.bar.

Examples

See mqr.plot.regression.