Code:
xtreg outcome treated post did $controls i.year, fe vce(robust)
Now, I have an instrumental variable (IV) for the treatment effect, and I would like to try testing whether this IV works and whether it helps to establish a stronger causal relationship in my theory. I have tried the following two ways of doing this, but I am not sure which of these two ways is more appropriate (or if they are both incorrect).
The first way is instrumenting for the "treated" variable that gets dropped in a fixed-effects model. The coefficients do not change from the above difference-in-difference model, so I do not think this works, but I am including it here.
Code:
xtivreg outcome post did $controls i.year (treated = instrument), fe vce(robust)
Code:
xtivreg outcome treated post $controls i.year (did = instrument), fe vce(robust)
Thank you in advance.
Comment