PanelRegression.plot_unit_effects#

PanelRegression.plot_unit_effects(highlight=None, label_extreme=0)[source]#

Plot distribution of unit fixed effects.

Only available with fe_method=”dummies”. Shows histogram of estimated unit-specific intercepts.

Parameters:
  • highlight (list[str], optional) – List of unit IDs to highlight on the distribution.

  • label_extreme (int, default=0) – Number of extreme units to label (top N + bottom N).

Returns:

Figure and axes objects

Return type:

tuple[plt.Figure, plt.Axes]

Raises:

ValueError – If fe_method is not “dummies”