Skip to content

Tutorial on the implementation of difference-in-difference analyses for estimating the effect of a group-level treatment among the treated.

License

Notifications You must be signed in to change notification settings

eleanormurray/DiD_Tutorial

Repository files navigation

DiD_Tutorial

A tutorial on the implementation of difference-in-difference (DiD) analyses using regression for estimating the effect of a group-level treatment among the treated in biomedical research.

The tutorial code and data here are supplementary material to: Rothbard S, Etheridge JC, Murray EJ. A Tutorial on Applying the Difference-in-Difference Method to Health Data. Current Epidemiology Reports. 2023. [in press] doi: 10.1007/s40471-023-00327-x https://link.springer.com/article/10.1007/s40471-023-00327-x

The version of code, data, and materials at the time of publication acceptance are included in the published release:

DOI

Synthetic datasets are available as SAS files (.sas7bdat), as Stata files (.dta), and as a CSV file. In addition, the code for creating the synthetic data is available in SAS. Analytic code is available in SAS, Stata, and R. Note that the SAS code uses non-parametric bootstrapping to obtain valid, non-conservative confidence intervals. The Stata & R code use robust variance estimation which provides valid, but conservative (i.e., wider than 95%) confidence intervals.

The Tutorial Workbook is available as a Student Version (no solutions) and a Teacher Version (solutions). This repository accompanies a tutorial article on DiD available at: [tbd].

Feedback or bug reports are welcome and can be provided via the GitHub Issue system or by email to ejmurray@bu.edu

About

Tutorial on the implementation of difference-in-difference analyses for estimating the effect of a group-level treatment among the treated.

Resources

License

Stars

Watchers

Forks

Packages

No packages published