causalis.scenarios.did.refutation.diagnostic_plots.plot_did_supportplot_did_support
Plot Callaway & Sant’Anna support cells, sized by complete comparison-unit count.
Visualizes which cohort-time cells are estimable given the selected control group and base period policy. Blue circles indicate supported cells, while red indicates unsupported cells. Circle size corresponds to the number of available control units.
Parameters
- dataPanelDataDID
The validated panel data object.
- control_group{“not_yet_or_never”, “never_treated”}, default “not_yet_or_never”
The definition of the comparison group.
- anticipationint, default 0
Anticipation periods to exclude.
- base_period{“universal”, “varying”}, default “universal”
Base period policy.
- include_pre_periodsbool, default False
Whether to include pre-treatment cells.
- figsizetuple of float, default (10.0, 5.5)
The size of the figure.
- dpiint, default 220
Resolution of the figure.
- font_scalefloat, default 1.05
Scaling factor for font sizes.
Returns
The resulting support plot.
Examples
fig.show()
Canonical target
causalis.scenarios.did.refutation.diagnostic_plots.plot_did_support
Sections