Dear Statalist,
I am struggling with an endogenous treatment in a diff-in-diff model I am using (at the town level). Denoting Y the outcome, POST a dummy equal to 1 for the periods after treatment and TREAT a dummy equal to 1 if the town belongs to the treatment group, the diff-in-diff is therefore expressed as such:
Y = B0 + B1*POST + B2*TREAT + B3*POST_TREAT + u (and I am interested in B3, associated to the interaction between POST and TREAT, which gives the diff-in-diff estimator).
However TREAT is endogenous and I have an instrument for it (which is a "good" instrument that satisfies the conditions). I don't know actually how to implement this on Stata, with -ivreg2-, since the endogenous variable (TREAT) is interacted with POST. Let Z denote the instrument. Is the following code accurate?
ivreg2 Y POST (TREAT POST_TREAT = Z POST_Z)
Or should I only instrument POST_TREAT? As such:
ivreg2 Y POST TREAT (POST_TREAT = POST_Z)
Or only TREAT?
ivreg2 Y POST POST_TREAT (TREAT = Z)
I am a bit perplex since I have never used ivreg2 with two instruments, and do not even know if it is possible.
Thanks in advance for all your remarks!
Olivier
Related Posts with Instrumented diff-in-diff with ivreg2
Round 2 digits after decimalHello, My data is attached as follows. I would like to round the data two digits after decimal (o.o…
Set a number of variables equal to 0 if a condition is verifiedHi I have a dataset with 48,000 observations (individuals) and about 150 variables. I know the age …
Meta-analysis subgroup difference testingHi, I need some advice please. I am conducting a meta-analysis. I have subgroups (male/female, whit…
Change variables within a group based on other observations in this groupHello, my dataset is structered the following: group_id regression_dummy 1 0 2 1 2 2 2 2 3 2 3 1 4…
new variable from mi imputeDear all, I'm struggling to generate a new variable after a Multiple Imputation. I'm new in MI, but…
Subscribe to:
Post Comments (Atom)
0 Response to Instrumented diff-in-diff with ivreg2
Post a Comment