Hi,

I have a regression of 'reg Y X1 X2 X1 X2 controls' and X1 is endogenous.

When I use ivreg I do 'ivregress 2sls Y X2 X1X2 controls (X1 = z1 z2)'

However, the interaction term is constructed using the endogenous X1 variable... How do I code an IV regression to control for the endogenous effect that this will be having through the interaction term?

Please help!!

Thank you so much.