xtabond2 and endogenous variable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

xtabond2 and endogenous variable

wangpan110
Dear everyone, is there anyone to help me about the xtabond2 expression?

Yit =Yit-1 +X1it +X1it-1 +X1it-2 +X2it +X2it-1 +X2it-2 + ui+vit

1) if Yit-1 and X1it-2 are endogenous, should I use the command:
xtabond2 Y L.Y L(0/2).(X1 X2), gmm(L.Y L(0/2).X1) iv (L(0/2).X2)

2) if Yit-1 and X1it-2 are endogenous, but X2it-2 is predetermined, should I use the command:
xtabond2 Y L.Y L(0/2).(X1 X2), gmm(L.Y L(0/2).X1 L2.X2) iv (L(0/1). X2)

any help is appreciated

Pan