Hi all,

For my data analysis, I am estimating a difference-in-difference model of the sort
Code:
 Y = a + bPOST + cTREAT + dPOST##TREAT +eCONTROLS + u
Since I am concerned with the endogeneity of my treatment variable TREAT, I would like to employ an IV strategy, in line with the relevant literature.

However, I am not sure how to run the IV regression in Stata, given that TREAT is part of an interaction term. I do not think the following code gives me the correct result:
Code:
 ivreg 2sls Y POST (TREAT = Z1)  POST##TREAT CONTROLS
What is the right way of going about this?
Many thanks in advance.

Best,
Sophia