Plots the treated and synthetic control trajectories of an sdid() result,
with an in-time placebo stacked below. Requires ggplot2.
Usage
sdid_placebo_plot(
estimate,
treated.fraction = NULL,
style = c("minimal", "effects"),
placebo.time = "auto",
x.breaks = NULL,
y.breaks = NULL
)Arguments
- estimate
The result of
sdid()with a single adoption period.- treated.fraction
The share of the periods before treatment that the placebo treats, as in
sdid_placebo(). Defaults to NULL.- style
The plot's style, "minimal" (the default) or "effects", as in
sdid_plot().- placebo.time
The period at which the placebo treatment begins, as in
sdid_placebo(). Defaults to "auto".- x.breaks, y.breaks
Optional ticks for the time and outcome axes, as in
sdid_plot(). The outcome ticks apply to both panels.