Hi, I have a regression of the following form:

Code:
 ivreg2 y (c.x##i.year = c.w##i.year) i.year
Could someone please help me in creating a variable that stores the coefficient from this term? I'm running this regression in a loop for different y values so need to store each coefficient.

Thanks!