I'm conducting analysis in the form below:
Code:
y = x1 + x2 + x3 + x1*x2
without including the interaction term, I can run the code below successfully:
Code:
xtivreg2: y x2 x3 (x1=z1), fe
Code:
xtivreg2: y x2 x3 (x1 c.x1#c.x2 = z1 c.z1#c.x2), fe
Code:
cx1#c: operator invalid
Code:
gen x1x2 = x1*x2 gen z1x2 = z1*x2 xtivreg2: y x2 x3 (x1 x1x2 = z1 z1x2), fe
Or more broadly, what is the shortcoming of this method as compared to one in which I can just run:
Code:
xtivreg2: y x2 x3 (x1 c.x1#c.x2 = z1 c.z1#c.x2), fe
0 Response to xtivreg2 instrumental variables with endogenous variable involves in interaction terms
Post a Comment