全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
107536 142
2006-01-23
用stata如何检验panel的自相关和异方差


Question:

用stata如何检验panel的自相关和异方差??hettest, szroeter 等只能用在regress之后,不能用于xtreg.如果stata没有这方面的功能,eviews有的话,那就说说如何在eviews中实现对panel的自相关和异方差检验吧?

Answer:

A) Test heteroskedasticity. We can use the fact that iterated GLS=MLE (Refer to most of standard textbooks). Try the following codes.

xtgls y x, panel(heteroskedastic) igls
estimates store igls
xtgls y x
local df=e(N_g)-1
lrtest igls . , df(`df')

B) Test autocorrelation. You can NOT use the fact given above. Since you can easily see after you write down the likelihood functioin, GLS does not accout for 1/2*(1+rho), (where rho is the correlation for AR(1) model) . However, you can use the following code.

xtserial y x
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2006-1-25 13:02:00

多谢

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2006-1-26 09:53:00
Keep up the good work!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2006-1-26 14:11:00

question: 在什么时候需要检验panel的自相关?

比如只有T=6,而N=30,需要吗?因为时序个数只有6,而截面却是大样本!!

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2006-1-29 17:48:00

怎么没有人回复呢?这么好的一个主题,希望大家多讨论一下Panel啊,别只顾下载,斑竹也来支持一下吧,谢谢。我先将贴子顶一下

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2006-3-11 10:11:00

难得的好铁

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群