I have two simultaneous equations:
(1) y1 = a0*y2 + a1*x1 + a2*x2 + a3*x3 + e
(2) y2 = b0*y1 + b1*z1 + b2*z2 + b3*z3 + u
The variables are first-differences. As I understand,
I can perform 2SLS by using ivreg2:
ivreg2 y1 x1 x2 x3 (y2 = z1 z2 z3)
My problem is slightly more complicated than this.
What if, in each equation, there is a lag dependent
variable:
(3) y1 = a0*y2 + a1*x1 + a2*x2 + a3*x3 + a4*Ly1 + e
(4) y2 = b0*y1 + b1*z1 + b2*z2 + b3*z3 + b4*Ly2 + u
Here, Ly1 is correlated with e, and Ly2 is correlated
with u. I plan to instrument Ly1 with L2y1
(two-period lag of y1) and Ly2 with L2y2 (two-period
lag of y2).
I believe I can still use ivreg2 to deal with this
problem. My question is whether the following command
syntax is correct?
ivreg2 y1 x1 x2 x3 (y2 Ly1 Ly2 = z1 z2 z3 L2y1 L2y2)
And is -ivreg2, gmm- is the same as -ivgmm0-?
Almost correct. You should disabuse yourself of the notion that "this
is an instrument for that"; as frequently mentioned on this list and in
the cited Stata FAQ, instrumental variables estimators do not work that
way. All of the Z variables are instruments for all of the included Y
variables. That said, what about your proposed regression?