楼主: cqmfs1
4167 12

[面板数据求助] xtcd怎么用???感觉结果不对,求帮助~~~~~~~~~~ [推广有奖]

11
蓝色 发表于 2013-3-26 01:05:28
我用别的数据是balance的。
需要查查他程序的详细的介绍,unbalance到底是什么意思

12
cqmfs1 在职认证  发表于 2013-3-26 01:07:45
蓝色 发表于 2013-3-26 01:05
我用别的数据是balance的。
需要查查他程序的详细的介绍,unbalance到底是什么意思
好吧,版主辛苦了~多谢解答~
主要我用了好几个程序都是unbalance,我还以为我操作有问题呢。

13
蓝色 发表于 2013-3-26 01:11:29
. 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书里面数据,是没有问
题的

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-11 22:54