. clear
. use
http://fmwww.bc.edu/ec-p/data/hayashi/sheston91.dta,clear
(Penn World Table Mark 5, R. Summers / A. Heston, 1991)
. xtset country year
panel variable: country (strongly balanced)
time variable: year, 1960 to 1985
delta: 1 year
. xtcd rgdppc
Average correlation coefficients & Pesaran (2004) CD test
Variables series tested: rgdppc
Group variable: country
Number of groups: 125
Average # of observations: 26.21
Panel is: unbalanced
---------------------------------------------------------
Variable | CD-test p-value corr abs(corr)
-------------+-------------------------------------------
rgdppc | 231.01 0.000 0.515 0.652
---------------------------------------------------------
Notes: Under the null hypothesis of cross-section
independence CD ~ N(0,1)