全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2010-11-19 17:04:48
然后计算留下变量的可解释的部分?
二维码

扫码加我 拉你入群

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

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

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

扫码加我 拉你入群

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

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

2010-11-21 23:12:19
any suggestion and response
二维码

扫码加我 拉你入群

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

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

2010-11-21 23:12:31
come on ,let us study
二维码

扫码加我 拉你入群

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

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

2010-11-21 23:12:51
like a child who are thirsty for knowledge
二维码

扫码加我 拉你入群

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

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

2010-11-23 09:09:51
是不是因素分析
二维码

扫码加我 拉你入群

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

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

2010-11-23 09:10:46
是不是因素分解
二维码

扫码加我 拉你入群

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

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

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

扫码加我 拉你入群

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

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

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)



二维码

扫码加我 拉你入群

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

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

2013-6-21 02:37:31
cool
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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