Dear Statalist,
I face problems in running a 2SLS regression with an endogeneous variable that is interacted.
Here's the OLS setting :
Y = X1 + X2 + X1*X2
With X2 the endogenous variable, that with be instrumented by Z2
Thus, I've got to instrument both the interaction term and the endogeneous variable.
So I think the Stata code should look like this:
But:
1. I'm not sure whether this is the correct code.
2. I'm confused about the first stage – is it a simple OLS for each instrument?
3. I don't know which tests, like the F-stat, to perform.
Thank you for your help !
I face problems in running a 2SLS regression with an endogeneous variable that is interacted.
Here's the OLS setting :
Y = X1 + X2 + X1*X2
Code:
reghdfe Y c.X1##c.X2
Thus, I've got to instrument both the interaction term and the endogeneous variable.
So I think the Stata code should look like this:
Code:
gen X1_X2 = X1 * X2 gen X1_Z2 = X1 * Z2 ivreg2 Y X1 (X2 X1_X2 = Z2 X1_Z2)
1. I'm not sure whether this is the correct code.
2. I'm confused about the first stage – is it a simple OLS for each instrument?
3. I don't know which tests, like the F-stat, to perform.
Thank you for your help !

Comment