全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
28782 34
2007-05-05
<P><BR>有没有人知道如何对付  both 异方差and 自相关 with panel data in Stata? </P>
<P>I'm confused about how to use standard test (white's, durbin-watson, etc.) with panel data. </P>
<P>Thx a lot!!!</P>
二维码

扫码加我 拉你入群

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

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

全部回复
2007-5-8 17:42:00

我也有同样问题。看过一些材料以后,发现以下几点,大家交流以下。

1.对于异方差可以使用white test, 方法如下:

regress y x1 x2

predict residus

gen residus2=residus^2

regress residus2 x1 x2 x1*x2 x1^2 x2^2

我在一个材料中发现,panel有专门的一个命令可以实现以上过程,好像是xttest3,or xttest2,但是我使用以后发现stata8.0 无法辨识这个命令,不知道为什么?敬请高手指点!

2. 对于自相关,Stata也有同样的test 验证自相关的存在。

当发现存在有异方差和自相关存在时,在stata中可以使用xtgls实现,具体方法可以使用help xtgls 了解。

二维码

扫码加我 拉你入群

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

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

2007-5-9 07:57:00
搜索我要论坛的文章
二维码

扫码加我 拉你入群

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

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

2007-5-10 00:45:00

输入命令 findit whitetst 可以下载到一个 white test 和 Breusch-Pagan test的module

二维码

扫码加我 拉你入群

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

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

2007-5-11 01:12:00

you can use xttest3 to test homo

but you should download xttest3 first

the Ho:homo ;H1:heme

or you can see hlep xttest3, you can find more information

I hope that can hlep you

by the way who can teach me how to test AR

二维码

扫码加我 拉你入群

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

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

2007-5-14 03:06:00

(1)The potential heteroskedasticity across panels can be tested using an LR test:

To conduct LR test we need estimate the model both with panel-level heteroskedasticity and without heteroskedasticity, that is, the model under H0 (with restriction) and under H1 (without restriction).We need also tell Stata how many constraints we have implied. So, for example, we can type

xtgls depvar indepvars, igls panels(heteroskedastic) estimates store heterotest xtgls depvar indepvars

local df = e(N_g) - 1
lrtest heterotest . , df(`df')

(2) Wooldridge (2002, pp.282–283) derives a simple test for autocorrelation in panel-data models, which is written by David Drukker as a user-written program in Stata called xtserial. You can type simply

xtserial depvar indepvars

I hope that would be helpful.

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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