PanelRegression.plot_coefficients#

PanelRegression.plot_coefficients(var_names=None, hdi_prob=0.94)[source]#

Plot coefficient estimates with credible/confidence intervals.

Automatically filters out fixed effect dummy coefficients to show only the treatment and control covariates.

Parameters:
  • var_names (list[str] | None) – Specific coefficient names to plot. Names must match the patsy design-matrix labels (e.g. "treatment", "x1"). If None, plots all non-FE coefficients.

  • hdi_prob (float) – Probability mass for the HDI interval when plotting Bayesian coefficients. Must be in (0, 1). Ignored for OLS models.

Returns:

Figure and axes objects

Return type:

tuple[plt.Figure, plt.Axes]