楼主: peyzf
8964 39

[回归分析求助] 我的被解释变量可以由三个部分解释,如何得到各部分的解释力度? [推广有奖]

31
peyzf 发表于 2010-11-19 17:04:48
然后计算留下变量的可解释的部分?

32
peyzf 发表于 2010-11-19 17:05:20
前提是用一个统一的模型。只是一次令某一类变量前面的系数为0.

33
peyzf 发表于 2010-11-21 23:12:19
any suggestion and response

34
peyzf 发表于 2010-11-21 23:12:31
come on ,let us study

35
peyzf 发表于 2010-11-21 23:12:51
like a child who are thirsty for knowledge

36
zgryyl 发表于 2010-11-23 09:09:51
是不是因素分析
[img][/img]

37
zgryyl 发表于 2010-11-23 09:10:46
是不是因素分解
[img][/img]

38
peyzf 发表于 2010-11-23 12:58:33
有点像多元方差分析。方差分析更适用于解释变量为分类变量的情形。而这里,我的解释变量大多数是连续的。

39
arlionn 在职认证  发表于 2013-6-20 16:29:45
  *--------
  *-4.1.4.4  R2 的分解: 解释变量对 R2 的贡献度  (Self-reading)
  
    help shapley2
        
        *-Israeli, O., 2007
        * A Shapley-based decomposition of the R-Square of a linear regression.
        * Journal of Economic Inequality, 5(2):199-212.
          shellout "$path\Refs\OLS_Shapley_R2.pdf"  //pp.202

        *-目的: 对 R2 进行分解, 分析每个变量对 R2 的贡献;
        
        *-示例:
          sysuse auto, clear
          pwcorr price weight length   //相关系数
          reg price weight length
          shapley2, stat(r2)
        
    *-原理: 如何得到 R2_weight = 0.22559 ?        
         *-weight 对 R2 的边际贡献有两种衡量方法:
            *-m1: R2(y c x1 x2) - R2(y c x2) = R2_m1
            rename (price weight length) (y x1 x2)
            qui reg y x1 x2
            local R2_all = e(r2)
            qui reg y x2
            local R2_x2 = e(r2)
            local R2_m1_x1 = `R2_all'-`R2_x2'
        
            *-m2: R2(y c x1) - R2(y c) = R2_m2
            qui reg y x1
            local R2_x1 = e(r2)
            qui reg y
            local R2_0  = e(r2)
            local R2_m2_x1 = `R2_x1'-`R2_0'
        
          *-Sharpley value = (R1_m1+R2_m2)/2
            local R2_x1_Sharp = (`R2_m1_x1'+`R2_m2_x1')/2
            dis "Shapley value of weight = " in g %6.5f `R2_x1_Sharp'
        
        *-多变量情形
          sysuse nlsw88, clear
          reg wage age hours tenure married
          shapley2, stat(r2)
        
        *-分组分析
          tab race, gen(dum)
          reg wage age hours tenure married dum2 dum3
          shapley2, stat(r2) group(age hours tenure married, dum2 dum3)



已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
Sunknownay + 100 + 10 + 1 + 1 + 1 热心帮助其他会员

总评分: 经验 + 100  论坛币 + 10  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

40
peyzf 发表于 2013-6-21 02:37:31
cool

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-22 22:07