*! version 1.0.0 Subir Hait 2026

Title

rdstagger_plot -- Coefficient plot for aggregated staggered RD estimates

Syntax

rdstagger_plot [,
title(string)
name(string)
saving(filename[, replace])]

title(string) graph title; a default is set based on aggregation type

name(string) graph name in memory; default rdstagger_plot

saving(filename[, replace]) save graph to disk

Description

rdstagger_plot produces a coefficient plot of the aggregated ATT
estimates stored by rdstagger_agg. It must be run after both
rdstagger and rdstagger_agg.

Point estimates are shown as circles with capped spikes for 95%
confidence intervals. For event-study (dynamic) aggregation:
pre-treatment estimates are shown in cranberry (dark red) and
post-treatment estimates in navy. A dotted vertical line marks
event time -0.5 (the last pre-treatment period). A dashed
horizontal line marks zero.

For group or calendar aggregation, all estimates are shown in navy.

Options

title(string) overrides the default graph title.

name(string) assigns a name to the graph in Stata's graph memory
so it can be retrieved with graph display. Default: rdstagger_plot.

saving(filename[, replace]) saves the graph to filename.gph.
Include the replace suboption to overwrite an existing file.

Examples

Full workflow:

. rdstagger_sim, n(400) periods(8) cohorts(3) seed(42)

. rdstagger y x, cutoff(0) gvar(g) tvar(period) idvar(id) bw(1.5)

. rdstagger_agg, type(dynamic)

. rdstagger_plot

Save to file:

. rdstagger_plot, title("Event study") saving(eventstudy, replace)

Group-level plot:

. rdstagger_agg, type(group)

. rdstagger_plot, title("ATT by cohort")

Also see

rdstagger, rdstagger_agg, rdstagger_pretest