StaggeredDifferenceInDifferences.get_plot_data#
- StaggeredDifferenceInDifferences.get_plot_data(*, group='posterior', hdi_prob=0.94)[source]#
Get event-time plotting data.
- Parameters:
group (
Literal['prior','posterior']) – Which draw group to summarize."prior"requiressample_prior_predictive();"posterior"requiresfit().hdi_prob (
float) – Probability for HDI interval. Only used by models carrying draws; when it differs from the value stored on the result bundle, the intervals are recomputed. Defaults toHDI_PROB(currently 0.94).
- Returns:
DataFrame with
event_timeandattcolumns plusatt_lower/att_upperHDI bounds (draw-carrying models) oratt_std/n_obsdispersion columns (point estimates). Includes both pre-treatment (placebo) and post-treatment effects. Not cached on the experiment.- Return type:
pd.DataFrame