全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
19320 13
2010-04-04
悬赏 1 个论坛币 已解决
请教stata高手,我想对一个回归方程的解释平方和对每个解释变量做方差分解,看看每个解释变量在解释平方和中的作用,用stata怎么实现?

最佳答案

luhmann 查看完整内容

命令: net install rego, replace force all from(http://www.marco-sunder.de/stata/) sysuse auto,clear reg mpg weight length displ gear i.foreign rego mpg weight length displ gear foreign, vce(robust) detail 输出: ------------------------------------------------------------------------------ Gr Regressor | Coef. Std.Err. P>|t| Std.Coef. Shapley %R2 ------------------- ...
二维码

扫码加我 拉你入群

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

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

全部回复
2010-4-4 20:59:17
命令:
net install rego, replace force all from(http://www.marco-sunder.de/stata/)
sysuse auto,clear
reg mpg weight length displ gear i.foreign
rego mpg weight length displ gear foreign, vce(robust) detail

输出:
------------------------------------------------------------------------------
Gr        Regressor |       Coef.      Std.Err.   P>|t|  Std.Coef. Shapley %R2
--------------------+---------------------------------------------------------
1           weight |   -.0041683 *    .0023647   0.082    -0.5599     31.7708
2           length |   -.0907552      .0713204   0.208    -0.3493     29.7794
3     displacement |    .0077379      .0085503   0.369     0.1228     18.8585
4       gear_ratio |    2.372516      1.715156   0.171     0.1871     13.5122
5          foreign |   -2.446102 **   1.158496   0.038    -0.1946      6.0792
-        Intercept |    42.98684      8.709253   0.000     
--------------------+---------------------------------------------------------
       Observations |          74
         Overall R2 |     0.68201
           Root MSE |    3.380313
      F-stat. Model |    29.57786 ***             0.000
     Log Likelihood |   -192.0025
------------------------------------------------------------------------------


参考文献:
Huettner, Frank and Marco Sunder (2012). "Axiomatic arguments for decomposing goodness of fit according to Shapley and Owen values." Forthcoming in Electronic Journal of Statistics.
Osnat Israeli A Shapley-based decomposition of the R -Square of a linear regression., JOURNAL OF ECONOMIC INEQUALITY Volume 5, Number 2 (2007), 199-212, DOI: 10.1007/s10888-006-9036-6





二维码

扫码加我 拉你入群

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

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

2010-4-5 00:11:27
方差分解,比如三个变量Y,X,Z都是面板格式的数据,且满足Y=X+Z,求方差var(Y),协方差Cov(X,Y)和Cov(Z,Y).
.bysort year:corr Y X Z,cov

求方差VAR(x) :

egen vx=var(x)

求协方差Covariance
二维码

扫码加我 拉你入群

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

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

2010-11-30 13:45:44
同问,二楼的可能对楼主的问题有点误解,楼主想问的是回归方程的R方中,各个自变量对因变量的解释方差各占多少吧?
二维码

扫码加我 拉你入群

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

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

2010-12-2 00:44:18
都糊涂了,怎么回事
二维码

扫码加我 拉你入群

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

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

2012-7-7 13:36:58
没有高手吗?同求啊
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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