InteractiveFixedEffectsSyntheticControl.plot#
- InteractiveFixedEffectsSyntheticControl.plot(*, round_to=None, treated_unit=None, ci_prob=0.94, kind='ribbon', ci_kind='hdi', num_samples=50, plot_predictors=False, figsize=(7, 8), show=True)[source]#
Plot the reconstructed untreated trajectory and impact panels.
Requires
fit(). Bands are posterior intervals for the untreated trajectory and the impacts. They marginalize the shrinkage prior and do not claim a selected-rank interval or nominal coverage. Raw factor series are not drawn: they are not uniquely identified.- Parameters:
round_to (
int|None) – Significant figures for the pre-period \(R^2\) in the title.treated_unit (
str|None) – Treated unit to draw. Defaults to the first treated name.ci_prob (
float) – Interval mass. Must be in(0, 1].kind (
Literal['ribbon','histogram','spaghetti']) – How posterior uncertainty is rendered.ci_kind (
Literal['hdi','eti']) – Interval type whenkind="ribbon".num_samples (
int) – Draw lines whenkind="spaghetti".plot_predictors (
bool) – Overlay donor trajectories on the counterfactual panel.show (
bool) – Whether to display the figure.
- Returns:
Three panels: untreated trajectory, point impact, cumulative impact.
- Return type:
tuple of matplotlib.figure.Figure and numpy.ndarray