全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2009-12-6 21:20:39
谢谢!好好留着。
二维码

扫码加我 拉你入群

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

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

2009-12-6 21:21:36
谢谢!好好留着。
二维码

扫码加我 拉你入群

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

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

2009-12-7 19:54:19
Title    Testing for panel-level heteroskedasticity and autocorrelation  
Author  Vince Wiggins, StataCorp
Brian Poi, StataCorp  
Date  June 2001; revised December 2003  

--------------------------------------------------------------------------------

Question:
I see how one can correct for potential heteroskedasticity across panels using xtgls, but I am unsure of a simple way to test for it.

Answer:
Since iterated GLS with only heteroskedasticity produces maximum-likelihood parameter estimates, we can easily do an LR test.

We can type

        . xtgls ... , igls panels(heteroskedastic)
        . estimates store hetero

to fit the model with panel-level heteroskedasticity and save the likelihood.

We can fit the model without heteroskedasticity by typing

        . xtgls ...

Now there is one trick. Normally, lrtest infers the number of constraints when we fit nested models by looking at the number of parameters estimated. For xtgls, however, the panel-level variances are estimated as nuisance parameters and their count is NOT included in the parameters estimated. So, we will need to tell lrtest how many constraints we have implied.

The number of panels/groups is stored in e(N_g) and, in the second model, we are constraining all of these to be single value, so our number of constraints can be computed and stored in a local macro by typing

        . local df = e(N_g) - 1

The test is then obtained by typing

        . lrtest hetero . , df(`df')

Autocorrelation
Iterated GLS with autocorrelation does not produce the maximum likehood estimates, so we cannot use the likelihood-ratio test procedure, as with heteroskedasticity. However, Wooldridge (2002, 282–283) derives a simple test for autocorrelation in panel-data models. Drukker (2003) provides simulation results showing that the test has good size and power properties in reasonably sized samples.

There is a user-written program, called xtserial, written by David Drukker to perform this test in Stata. To install this user-written program, type

        . findit xtserial
        . net sj 3-2 st0039         (or click on st0039)
        . net install st0039        (or click on click here to install)

To use xtserial, you simply specify the dependent and independent variables:

        . xtserial depvar indepvars

A significant test statistic indicates the presence of serial correlation
二维码

扫码加我 拉你入群

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

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

2009-12-7 20:01:43
请问蜻蜓点水或哪位高人为何:lrtest hetero nohetero , df(`df')不能用?STATA不能给出结果?
二维码

扫码加我 拉你入群

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

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

2010-1-14 12:18:23
学到不少,顶
二维码

扫码加我 拉你入群

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

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

2010-1-18 12:59:40
Thanks, I need it!
二维码

扫码加我 拉你入群

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

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

2010-1-27 21:22:27
各人高人,俺正在学习中!
二维码

扫码加我 拉你入群

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

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

2010-4-16 14:14:01
好贴!可惜我用的是Eviews
二维码

扫码加我 拉你入群

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

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

2010-4-26 14:35:02
留帖子做记号哈哈,谢谢,收获不少
二维码

扫码加我 拉你入群

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

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

2010-4-27 11:44:57
受益匪浅,谢谢各位。
二维码

扫码加我 拉你入群

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

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

2010-4-27 12:19:06
非常有用,谢谢!
二维码

扫码加我 拉你入群

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

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

2010-5-9 12:59:10
我也很想知道~
二维码

扫码加我 拉你入群

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

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

2010-5-12 15:31:39
非常受用,谢谢!...
二维码

扫码加我 拉你入群

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

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

2010-5-15 07:25:59
非常受用,Thank U
二维码

扫码加我 拉你入群

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

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

2010-5-17 06:38:58
有意义的讨论
二维码

扫码加我 拉你入群

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

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

2010-10-29 20:19:18
做个记号,应该要用到
二维码

扫码加我 拉你入群

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

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

2010-11-9 11:10:31
非常有用~~谢谢啦
二维码

扫码加我 拉你入群

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

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

2010-11-29 10:05:05
我先将贴子顶一下
二维码

扫码加我 拉你入群

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

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

2010-11-29 10:36:25
xtscc 命令得到异方差、序列相关、截面相关稳健型标准误。

本文来自: 人大经济论坛 Stata专版 版,详细出处参考:http://www.pinggu.org/bbs/viewth ... amp;from^^uid=1052223
二维码

扫码加我 拉你入群

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

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

2010-11-29 15:05:03
不错不错真不错啊!
二维码

扫码加我 拉你入群

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

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

2010-11-29 18:47:38
biaojixia 63floor
二维码

扫码加我 拉你入群

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

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

2010-11-30 07:52:49
怎么没有高手来解答问题呀??????
二维码

扫码加我 拉你入群

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

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

2010-12-2 00:45:09
继续深入讨论呀,学习呢
二维码

扫码加我 拉你入群

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

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

2010-12-2 23:14:17
请问各位大虾,我想做Stata panel 的异方差检验(随机效应模型),应如何输入命令?谢谢!
二维码

扫码加我 拉你入群

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

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

2010-12-2 23:39:42
好贴,记下了
二维码

扫码加我 拉你入群

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

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

2010-12-7 23:53:16
做个记号,好好学习。
二维码

扫码加我 拉你入群

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

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

2011-3-12 22:24:37
1# nkzhh 能解释一下如何检验异方差的命令吗??
二维码

扫码加我 拉你入群

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

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

2011-3-12 22:27:47
4# statax 这时候是不是异方差问题更值得考虑啊?!
二维码

扫码加我 拉你入群

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

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

2011-4-7 00:27:38
看完了。好贴。
二维码

扫码加我 拉你入群

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

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

2011-4-8 12:11:08
为什么我看过的fixed effect model都是测组间的异方差Uj而不是那个总的误差项Eij?
二维码

扫码加我 拉你入群

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

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

栏目导航
热门文章
推荐文章

说点什么

分享

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