|
. use "D:\Data\dta\greena\table141-greene.dta", clear
. xtset i t
panel variable: i (strongly balanced)
time variable: t, 1 to 15
delta: 1 unit
. tab i t
| T
I | 1 2 3 4 5 6 7 8 | Total
-----------+----------------------------------------------------------------------------------------+----------
1 | 1 1 1 1 1 1 1 1 | 15
2 | 1 1 1 1 1 1 1 1 | 15
3 | 1 1 1 1 1 1 1 1 | 15
4 | 1 1 1 1 1 1 1 1 | 15
5 | 1 1 1 1 1 1 1 1 | 15
6 | 1 1 1 1 1 1 1 1 | 15
-----------+----------------------------------------------------------------------------------------+----------
Total | 6 6 6 6 6 6 6 6 | 90
| T
I | 9 10 11 12 13 14 15 | Total
-----------+-----------------------------------------------------------------------------+----------
1 | 1 1 1 1 1 1 1 | 15
2 | 1 1 1 1 1 1 1 | 15
3 | 1 1 1 1 1 1 1 | 15
4 | 1 1 1 1 1 1 1 | 15
5 | 1 1 1 1 1 1 1 | 15
6 | 1 1 1 1 1 1 1 | 15
-----------+-----------------------------------------------------------------------------+----------
Total | 6 6 6 6 6 6 6 | 90
. xtcd c
Average correlation coefficients & Pesaran (2004) CD test
Variables series tested: c
Group variable: i
Number of groups: 6
Average # of observations: 18.00
Panel is: balanced
---------------------------------------------------------
Variable | CD-test p-value corr abs(corr)
-------------+-------------------------------------------
c | 14.51 0.000 0.968 0.968
---------------------------------------------------------
Notes: Under the null hypothesis of cross-section
independence CD ~ N(0,1)
. xtcd q
Average correlation coefficients & Pesaran (2004) CD test
Variables series tested: q
Group variable: i
Number of groups: 6
Average # of observations: 18.00
Panel is: balanced
---------------------------------------------------------
Variable | CD-test p-value corr abs(corr)
-------------+-------------------------------------------
q | 13.03 0.000 0.869 0.869
---------------------------------------------------------
Notes: Under the null hypothesis of cross-section
independence CD ~ N(0,1)
.
用greene书里面数据,是没有问题的
|