Hi, I came across two commands that are supposed to do similar jobs: -kmatch- and -diff-
Both of them have propensity score matching. However, I can't find the way to make them compatible.
For example, from what I understand, if -time- is a dummy: 0=pre-intervention, and 1=post-intervention
and -treatment-: 0 = people not in the intervention, and 1=people in the intervention
then, the DiD (without matching) is basically:
reg outcome time#treatment
This is identical to:
diff outcome, p(time) t(treatment)
So far, everything worked.
The problem starts here. What if the assumptions of DiD are not satisfied, and I want to do a propensity matching? Then, the command -diff- can do it as follows:
diff outcome, p(time) t(treatment) ps( xvar1 xvar2 )
However, I can't get the same results using kmatch:
kmatch ps treatment xvar1 xvar2 (outcome)
Also, replacing -treatment- by TT= treatment*time still doesn't work.
Can someone please give me an easy solution with the two codes I need to make diff and kmatch compatible??
Thank you very much in advance,
Related Posts with DiD and Matching
Creating Mills RatiosHi all, This is my first post here so I apologise in advance if I've broken any rules, and I also a…
Binary Variable GraphHello all, I simply want to plot a graph with the number of times a binary variable (civil war inci…
How to create variable of relative change?Dear experts, I have a dataset including monthly observations from June 2017 - June 2019, where I w…
extract table from multiple pages of the web by Stata ?Hi , I'm now trying to extract data from web " https://ift.tt/2HE5woy" , there are a lot of pages in…
Annualising coefficients in a loopHi all, I am currently working on project about volatility timing. The data I am working with is dai…
Subscribe to:
Post Comments (Atom)
0 Response to DiD and Matching
Post a Comment