sergiocorreia / ivreghdfe

Run IV/2SLS with many levels of fixed effects (i.e. ivreg2+reghdfe)
MIT License
77 stars 27 forks source link

ivreghdfe interaction terms #18

Open mathurshreya95 opened 5 years ago

mathurshreya95 commented 5 years ago

Hi, could you please tell me how to run ivreghdfe with an interaction with a categorical variable? My regression without the interaction is: ivreghdfe y (x=w), r cl(district) a(district) I want to interact x with the categorical variable state that has categories from 1 to 50. But the following command doesn't seem to work: ivreghdfe y (c.x##i.state=c.w##i.state), r cl(district) a(district)

Thank you!