Hello,
I'm estimating a model with the independent variables lagged one year with respect to the dependent variable. In Stata, it can be done with the forward operator, f.y, instead of using lag operators for all independent variables.
xtreg f.y i.year x1 x2 x3, fe robust
That is identical to
xtreg y i.year l.(x1 x2 x3), fe robust
I was wondering if using the forward operator would work for xtabond2. For example, would this syntax
xtabond2 f.y y i.year x1 x2 x3, gmm(y x1 x2 x3, lag(1 .) collapse) iv(i.year) robust twostep
be equated to this one
xtabond2 y l.y i.year l.(x1 x2 x3), gmm(l.y l.(x1 x2 x3), lag(1 .) collapse) iv(i.year) robust twostep
I have checked on my dataset and the results slightly differ. The same size is the same, but not the effect sizes and their standard errors.
Would be grateful for any help with this.
I'm estimating a model with the independent variables lagged one year with respect to the dependent variable. In Stata, it can be done with the forward operator, f.y, instead of using lag operators for all independent variables.
xtreg f.y i.year x1 x2 x3, fe robust
That is identical to
xtreg y i.year l.(x1 x2 x3), fe robust
I was wondering if using the forward operator would work for xtabond2. For example, would this syntax
xtabond2 f.y y i.year x1 x2 x3, gmm(y x1 x2 x3, lag(1 .) collapse) iv(i.year) robust twostep
be equated to this one
xtabond2 y l.y i.year l.(x1 x2 x3), gmm(l.y l.(x1 x2 x3), lag(1 .) collapse) iv(i.year) robust twostep
I have checked on my dataset and the results slightly differ. The same size is the same, but not the effect sizes and their standard errors.
Would be grateful for any help with this.
Comment