I'm using ivreghdfe and need to interact my instrument with a categorical variable. Could someone explain how to do this? My regressor is x, the instrument is w and the categorical variable is state.
I tried:
Code:
ivreghdfe y (x=z)*i.state, r cl(district) a(district)
I also tried to create the interaction as a variable but I'm not sure how that's useful. If I run
Code:
interaction_x=x*state interaction_w=w*state
Code:
interaction_x=x*i.state interaction_w=w*i.state
0 Response to ivreghdfe interaction term!
Post a Comment