Hi all,

I'm using an IV and I need to include an interaction term using the instrumented endogenous variable. I keep getting the error: "parentheses unbalanced r(132)" and I can't seem to figure out how to fix this.

The code I am using is:

Code:
xtreg lntthpp legacy (prevlntcpn prevlntcpn_legacy =prevlndirect prevlndapw prevlncumAAFNP prevlncumAAFPilots prevlncumAAFNS prevlncumAAFTFT i.yr), fe
Prevlntcpn is my endogenous variable that I'm trying to instrument, and I'd like to create an interaction term with the instrumented prevlnctpn * legacy (a dummy variable).

Does anyone have an advice on how to do this?