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
How to drop specific observations from dataset in Stata?Hello, I have a large dataset but I do not need all observations. The dataset contains data for eve…
Date problem. Again...Hi, I have read the documentation but I still do not understand why I can npt convert my string var…
How to generate 5 year-sum variables?Hello, I have been trying to generate a variable that takes the five-year sum (from t-4 to to year t…
How to randomly select control sample for the treatment sample multiple times and run regressions?Dear all, I am using Stata 14.0 to solve the questions about randomly selecting control sample for t…
Need some help on how to run multivariat tobit (mvtobit) in STATAI am engaging on a research and among the objectives measuring the status of rural household’s multi…
Subscribe to:
Post Comments (Atom)
0 Response to IV regressions with interaction terms
Post a Comment