Dear Stata community,
I'd like to run an IV regression with interaction terms between the endogenous variable and two other variables to study heterogeneous treatment effects, suppose x1 is the endogenous variable, z is the instrument, x2 and x3 are the two variables to be interacted with x1; x1_x2, x1_x3, z_x2 z_x3 are interactions between x1 and x2, x1 and x3, z and x2, and z and x3, respectively, I'd also like to use ivreghdfe to control for fixed effects. I was wondering if the following code is correct:
ivreghdfe y (x1 x1_x2 x1_x3 = z z_x2 z_x3) x2 x3, a(fe1)
More specifically, I'd like to ask is it right to write the code for instrumenting as (x1 x1_x2 x1_x3 = z z_x2 z_x3)?
Thanks,
Yi
Related Posts with IV regressions with interaction terms
The robust standard error in a fixed effects modelHi I have a question about the vce(robust) option. (the option is same with vce(cluster pid) in xtre…
Power calculations for clustered designs & multiple survey roundsHello, does anyone know how to conduct power calculations that account for both clustered designs an…
Weak instrument issue with control function approach, in nonlinear modelsDear all, I'm applying the control function (CF) approach in a nonlinear model, the fractional resp…
Compare the distributions of two variablesI would like to compare the distributions of two variables: guess_attain_own_treatment and guess_att…
Merging rows that have identical namesDear all, I have been struggling with the following issue. My dataset is basically like in the table…
Subscribe to:
Post Comments (Atom)
0 Response to IV regressions with interaction terms
Post a Comment