This article describes a new Stata command called xtwest, which implements the four error-correction–based panel cointegration tests developed by Westerlund (2007). The tests are general enough to allow for a large degree of heterogeneity, both in the long-run cointegrating relationship and in the short-run dynamics, and dependence within as well as across the cross-sectional units.
BanerjeeA., DoladoJ., and MestreR.1998. Error-correction mechanism tests for cointegration in a single-equation framework. Journal of Time Series Analysis19: 267–283.
2.
ChangY.2004. Bootstrap unit root tests in panels with cross-sectional dependency. Journal of Econometrics120: 263–293.
3.
KremersJ. J. M., EricssonN. R., and DoladoJ. J.1992. The power of cointegration tests. Oxford Bulletin of Economics and Statistics54: 325–348.
4.
NeweyW. K., and WestK. D.1994. Automatic lag selection in covariance matrix estimation. Review of Economic Studies61: 631–653.
5.
WesterlundJ.2007. Testing for error correction in panel data. Oxford Bulletin of Economics and Statistics69: 709–748.