moderndid.plots.plot_multiplegt#
- moderndid.plots.plot_multiplegt(result: DIDInterResult, show_ci: bool = True, ref_line: float | None = 0, xlab: str | None = None, ylab: str | None = None, title: str | None = None, **_kwargs: Any) ggplot[source]#
Create event study plot for intertemporal treatment effects.
- Parameters:
- result
DIDInterResult Intertemporal treatment effects result from did_multiplegt().
- show_cibool, default=True
Whether to show confidence intervals as error bars.
- ref_line
floatorNone, default=0 Y-value for reference line. Set to None to hide.
- xlab
str, optional X-axis label. Defaults to “Horizon”.
- ylab
str, optional Y-axis label. Defaults to “Effect”.
- title
str, optional Plot title. Defaults to “Intertemporal Treatment Effects”.
- result
- Returns:
plotnine.ggplotA plotnine ggplot object that can be further customized.