6.6.2.2.3.1.12. statsmodels.sandbox.panel.mixed.OneWayMixedResults.plot_random_univariate

OneWayMixedResults.plot_random_univariate(bins=None, use_loc=True)[source]

create plot of marginal distribution of random effects

Parameters:

bins : int or bin edges

option for bins in matplotlibs hist method. Current default is not very sophisticated. All distributions use the same setting for bins.

use_loc : bool

If True, then the distribution with mean given by the fixed effect is used.

Returns:

fig : matplotlib figure instance

figure with subplots

Notes

What can make this fancier?

Bin edges will not make sense if loc or scale differ across random effect distributions.