Hello all
I'm assessing the impact of an intervention over the course of two years (from 2016-17, and from 2017-18).
I'm using a difference-in-difference analysis, comparing the treatment group to a control group over three years: pre-treatment (2015-16) and post-treatment (2016-17 and 2017-18).
I'd like to calculate the DiD in coefficient for both the change over 2016-17 and then 2017-18. I can do this simply by separating my data into two databases, with 2 time points each (one to compare 2015-16 to 2016-17, and a separate database to compare 2016-17 to 2017-18). In each case, I have a dummy variable which equals 0 in the earlier year, and 1 in the later year. I also have a dummy for whether the variable is in the treated or control group. I then regress the outcome variable over Time##Treated.
I would like to do both comparisons using a single database, as this would be more succinct and less clumsy. I'd also like to show the cumulative effect of the intervention over the two years. Is it possible?
Many thanks.
Related Posts with Using a single database for a Difference-in-Difference analysis with three time periods
Do file display problemI am using Stata 17 on Monterey on a 4K Retina iMac monitor. Recently the .do file editor started to…
multproc (Why am I getting the same corrected P value)Dear all, I am using the following command to correct for multiple testing. However I keep getting t…
Metan - how to calculate 95% CI intervals transforming _ES and _seES?Dear David Fisher and metan community, I have seen a question, ask a while ago by Jawdat Abdulla on…
Additional Scalars not Showing Up in Esttab Table - TestparmHi, I'm running four cox models assessing the effect of interactions between different types of soci…
name conflict in identifying a matrixHi, I need to compare parameters of equation coming from SUR and GLM estimations. So I need to code…
Subscribe to:
Post Comments (Atom)
0 Response to Using a single database for a Difference-in-Difference analysis with three time periods
Post a Comment