Code:
net install xtdpdgmm, from(http://www.kripfganz.de/stata) replace
- The option nolevel changes the default for the model() option to model(difference). Any gmm() and iv() instruments explicitly specified for model(level) will be ignored. (An intercept is still estimated for the level model unless option noconstant is specified as well.)
- If time effects are added with option teffects, the option nolevel implies that they will be instrumented with standard instruments for the transformed model (as specified with option model()) instead of the level model. While time dummies are always valid instruments in the untransformed model, specifying them for the transformed model instead can still be useful to exactly replicate results from a "difference-GMM" estimator (in unbalanced panels).
- In combination with option small, the option nolevel corrects the small-sample standard-error adjustment for the reduction of time periods in the transformed model or the absorbed group-specific effects.
Code:
webuse psidextract regress lwage wks i.id xtreg lwage wks, fe xtdpdgmm lwage wks, iv(wks) model(mdev) norescale small nolevel
Code:
regress lwage wks i.id, vce(cluster id) xtdpdgmm lwage wks, iv(wks) model(mdev) norescale small nolevel vce(robust)
Code:
xtreg lwage wks, fe vce(robust) xtdpdgmm lwage wks, iv(wks) model(mdev) norescale small vce(robust)
With the nolevel option, we can now also replicate the robust standard errors for a first-difference regression:
Code:
regress D.(lwage wks), nocons vce(cluster id) xtdpdgmm lwage wks, nocons iv(wks, difference) model(difference) small nolevel vce(robust)
Code:
regress D.(lwage wks), nocons xtdpdgmm lwage wks, nocons iv(wks, difference) model(difference) wmatrix(separate) small nolevel
Leave a comment: