楼主: nkzhh
108040 142

[程序分享] 用stata如何检验panel的自相关和异方差   [推广有奖]

11
maximus11111 发表于 2006-11-13 23:23:00
look look

12
maximus11111 发表于 2006-11-13 23:26:00

怎么处理呢!

13
leewinjing 发表于 2006-11-14 09:29:00

如果时间非常短,而个体数又非常多,比如T=5,N=50,就非常需要进行异方差和自相关的检验。我是这么做的。

DEA软件及资料资源环境经济

14
hgz2373294 发表于 2006-11-21 19:41:00

搜索我的论坛文章

我已经给了例子

大数据晓(小)众商!

15
hgz2373294 发表于 2006-11-26 08:53:00

搜索我的论坛文章,我已经发了相关资料

大数据晓(小)众商!

16
toyewa 发表于 2006-11-27 21:57:00

为什么我按照楼主的程序输入. xtserial y x后显示
unrecognized command: xtserial
请那位高手能指点下,多谢了!

我没有查到楼上所说的帖子,你可以将你帖子的内容发到我邮箱吗?在此先谢了!邮箱:wangcuacua1981@163.com

17
我是饭饭 发表于 2006-12-18 12:33:00
一定要进行检验吗?如果用GMM方法回归也要进行这些检验吗?我一直以为不用呢

18
蓝色 发表于 2006-12-18 14:57:00

希望这样的帖子多点,收益不少啊。

19
minixi 发表于 2007-1-3 06:06:00

命令(面板数据已设定)

xtserial y x

是检验gls前的序列相关?还是检验gls后什么的的序列相关?

检验的目的是什么?

Wooldridge test for serial correlation in panel-data models

xtserial depvar [varlist] [if exp] [in range] [, output]

You must tsset your data before using xtserial; see help tsset.


Description

xtserial implements a test for serial correlation in the idiosyncratic
errors of a linear panel-data model discussed by Wooldridge (2002).
Drukker (2003) presents simulation evidence that this test has good
size and power properties in reasonable sample sizes.

Under the null of no serial the residuals from the regression of the
first-differenced variables should have an autocorrelation of -.5.
This implies that the coefficient on the lagged residuals in a
regression of the lagged residuals on the current residuals should be
-.5. xtserial performs a Wald test of this hypothesis. See Drukker
(2003) and Wooldridge (2002) for further details.

一个例题的执行结果:

. xtserial cp ip,out

Linear regression Number of obs = 224
F( 1, 15) = 1368.43
Prob > F = 0.0000
R-squared = 0.8634
Number of clusters (id) = 16 Root MSE = 66.027

------------------------------------------------------------------------------
| Robust
D.cp | Coef. Std. Err. t P>|t| [95% Conf. Interval]
------------+----------------------------------------------------------------
ip |
D1. | .7996297 .0216161 36.99 0.000 .7535561 .8457032
------------------------------------------------------------------------------

Wooldridge test for autocorrelation in panel data
H0: no first-order autocorrelation
F( 1, 15) = 64.220

怎样解释输出结果?

[此贴子已经被作者于2007-1-3 6:15:09编辑过]

已有 1 人评分学术水平 热心指数 信用等级 收起 理由
胡老 + 3 + 5 + 3 精彩帖子

总评分: 学术水平 + 3  热心指数 + 5  信用等级 + 3   查看全部评分

20
zhpcy666 发表于 2007-1-5 17:22:00

正需要,很好

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-25 06:29