Dear Statalist
I have an unbalanced panel with N>t. I need to test
for cross-sectional dependence. I tried using xttest2
but it gave an error code, presumably because of the
N>t issue:
__000002 not found
r(111);
I would thus like to implement the Pesaran test for
cross-sectional dependence in a panel. A previous
posting by Vasilis Sarafidis
(http://www.stata.com/statalist/archive/2005-03/msg00151.html)
indicated that
"If you mean testing for cross-sectional correlation
in a panel with N > T, there is a recent paper by
Hashem Pesaran, which is easy to read and you can do
the calculations within 5 minutes in Stata. See
http://www.econ.cam.ac.uk/faculty/pesaran/CDtestPesaranJune04.pdf"
I have looked at the paper but really do not
understand how to go about implementing the test in
practice. I gather that one needs to constuct a
correlation matrix from the residuals and somehow sum
up the elements of the martrix. But can anyone explain
to me in a very simple step-by-step way, preferably
with an example of some code (assuming no user-written
program already exists for this) how to implement this
test in practice? I have really tried working it out
myself and simply dont know how to proceed. I have
never worked with matrices in Stata before and am a
bit desperate!
Many thanks
Krishna Naidoo
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/