6.6.2.2.3.1.14. statsmodels.sandbox.panel.mixed.OneWayMixedResults.plot_scatter_pairs

OneWayMixedResults.plot_scatter_pairs(idx1, idx2, title=None, ax=None)[source]

create scatter plot of two random effects

Parameters:

idx1, idx2 : int

indices of the two random effects to display, corresponding to columns of exog_re

title : None or string

If None, then a default title is added

ax : None or matplotlib axis instance

If None, then a figure with one axis is created and returned. If ax is not None, then the scatter plot is created on it, and this axis instance is returned.

Returns:

ax_or_fig : axis or figure instance

see ax parameter

Notes

Still needs ellipse from estimated parameters