全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
14360 6
2011-09-15
stata我就不会,但是听说用stata做面板数据回归很好,所以~~~~现在已经检验确定采用混合OLS模型,请问下一步是进行同方差检验吗?命令是什么呢?然后应该进行回归了,回归的命令和判断模型是否能用的命令是什么?期盼好心人给解答。
       中间糊里糊涂用了“xttest3”,系统输出“unrecognized command:  xttest3”
       后来又用了“estat hettest”,系统输出“invalid subcommand hettest”
       看了好多课件看不懂,所以希望好心人帮帮俺,谢谢,万分感谢
二维码

扫码加我 拉你入群

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

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

全部回复
2011-9-16 07:16:56
命令xttest3是外部命令,需要先安装
ssc install  xttest3



xttest3 calculates a modified Wald statistic for groupwise heteroskedasticity
in the residuals of a fixed effect regression model, following Greene
(2000, p. 598). xtreg, fe estimates this model assuming homoskedasticity.
The most likely deviation from homoskedastic errors in the context of pooled
cross-section time-series data (or panel data) is likely to be error variances
specific to the cross-sectional unit. xttest3 tests the hypothesis that
sigma^2(i)==sigma for i=1,N_g, where N_g is the number of cross-sectional
units. The resulting test statistic is distributed Chi-squared(N_g) under the
null hypothesis of homoskedasticity.
二维码

扫码加我 拉你入群

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

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

2011-9-16 16:14:30
ywh19860616 发表于 2011-9-16 07:16
命令xttest3是外部命令,需要先安装
ssc install  xttest3
真的非常感谢你~~然后就是,能不能详细一点说一下,确定采用混合OLS模型之后,我还需要做哪些检验才能估计回归方程?我参考的文献在确定模型后,进行了同方差检验,下面是截图,但是我运行 estat hettest 系统提示“invalid subcommand hettest”,不知道要怎么办了~~再次谢谢你哦
二维码

扫码加我 拉你入群

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

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

2011-9-16 17:59:01
一般异方差问题比较少去直接检验的,在面板中加上robust就可以了


    Test for heteroskedasticity
        . estat hettest
        . estat hettest weight foreign##c.mpg, mtest(b)
按上面的第二种方式试试
应该是对回归的残差进行检验吧
二维码

扫码加我 拉你入群

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

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

2011-9-16 18:33:51
ywh19860616 发表于 2011-9-16 17:59
一般异方差问题比较少去直接检验的,在面板中加上robust就可以了
不知道为什么,总是显示hettest是无效命令,我这个门外汉太汗了
二维码

扫码加我 拉你入群

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

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

2012-8-4 04:53:23
ywh19860616 发表于 2011-9-16 17:59
一般异方差问题比较少去直接检验的,在面板中加上robust就可以了
请问你说的第二种中除了 estat hettest 外其他的代表什么 是要加权吗
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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