*! version 1.0.0 14sept2025

undid_plot

undid

undid - Estimate difference-in-differences with unpoolable data.

Command Description

undid_plot Takes in all of the trends data CSV files and uses them to create parallel trends plots or event study plots.

Required parameters:

- dir_path : A string specifying the filepath to the directory (folder) where all of the trends data CSV files for this analysis are stored.

Optional parameters:

- plot : A string which specifies the type of plot to make. Options are:
-> "agg", "dis", "silo", or "event". Defaults to "agg".

- weights : Integer, either 1 (true) or 0 (false), which determines whether or not the weights should be used. Defaults to 1.

- covariates : Integer, either 1 (true) or 0 (false), which specifies whether to use the `mean_outcome` column
or the `mean_outcome_residualized` column from the trends data CSV files while plotting. Setting to 0 (false) selects the `mean_outcome` column
and 1 (true) selects the `mean_outcome_residualized` column. Defaults to 0 (false).

- omit_silos : A string, with different silo names separated by spaces, indicating any silos to omit from the plot.

- include_silos : A string, with different silo names separated by spaces, indicating to only include these silos in the plot.

- treated_colours : A string, with different colours seprated by spaces, used to select the colours used for treated silos when the 'plot' argument is set to either "silo" or "dis".
Defaults to "cranberry maroon red orange_red dkorange sienna brown gold pink magenta purple".

- control_colours : A string, with different colours seprated by spaces, used to select the colours used for control silos when the 'plot' argument is set to either "silo" or "dis".
Defaults to "navy dknavy blue midblue ltblue teal dkgreen emerald forest_green mint cyan".

- ci : Real value, between 0 and 1, used to indicate the confidence interval for event study plots, i.e. when the 'plot' argument is set to "event".
Setting to 0 toggles off the confidence intervals. Defaults to 0.95.

- event_window : Two numeric values, which if supplied, determine the periods before (the first value) and the periods after (the second value) the event that should be included in the plot.

Syntax

undid_plot dir_path(string) [plot(string) weights(int) covariates(int) omit_silos(string) include_silos(string) treated_colours(string) control_colours(string) ci(real) event_window(numlist)]

Author

Eric Jamieson

For more information about undid, visit the https://github.com/ebjamieson97/undid GitHub repository.

Citation

Please cite: Sunny Karim, Matthew D. Webb, Nichole Austin, Erin Strumpf. 2024. Difference-in-Differenecs with Unpoolable Data. https://arxiv.org/abs/2403.15910