楼主: 我就爱维C
2462 4

[面板数据求助] 面板数据shapley分解的一点疑惑 [推广有奖]

  • 3关注
  • 0粉丝

已卖:5份资源

讲师

21%

还不是VIP/贵宾

-

威望
0
论坛币
185 个
通用积分
47.3188
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
12529 点
帖子
266
精华
0
在线时间
410 小时
注册时间
2015-6-20
最后登录
2025-12-27

楼主
我就爱维C 发表于 2021-8-28 12:02:35 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
最近在做面板数据的shapley分解,总是出现问题,有没有大神帮我解答下疑问,在此感谢!(1)我的数据是面板数据,然后首先做了一个固定效应logit 回归,可是回归结果中没有显示pseudo_R2,有人知道怎么让她显示出来吗?(2)做完回归之后再做shapley2分解,然后也总是出现故障,不知道是不是因为前一阶段的(r2_p)未显示,所以分解出现问题,还是因为shapley分解不能用于面板数据只能用于截面数据,还是我哪里有问题?这个问题困扰我好久,查了很多资料在论坛逛了好久也还是没有找到答案,希望有心人能够帮我解答一下,感激涕零!
  1. [/size][/color][/font]
  2. [font=Monaco, Consolas, \Lucida Console\, \Courier New\, serif][color=#666666][size=12px]xtset idind wave[/size]
  3. [size=12px]       panel variable:  idind (unbalanced)[/size]
  4. [size=12px]        time variable:  wave, 1989 to 2015, but with gaps[/size]
  5. [size=12px]                delta:  1 unit[/size]
  6. [size=12px]
  7. [/size]
  8. [size=12px]. [/size]
  9. [size=12px]end of do-file[/size]
  10. [size=12px]
  11. [/size]
  12. [size=12px]. do "C:\Users\ADMINI~1\AppData\Local\Temp\STD01000000.tmp"[/size]
  13. [size=12px]
  14. [/size]
  15. [size=12px]. xtlogit y x1 x2 x3 x4 x5 x6 x71 x72 x73 x74 x75 x76 x8 x9 x10 x11 x12 x13,fe nolog [/size]
  16. [size=12px]note: multiple positive outcomes within groups encountered.[/size]
  17. [size=12px]note: 23,448 groups (58,584 obs) dropped because of all positive or[/size]
  18. [size=12px]      all negative outcomes.[/size]
  19. [size=12px]
  20. [/size]
  21. [size=12px]Conditional fixed-effects logistic regression   Number of obs     =     83,419[/size]
  22. [size=12px]Group variable: idind                           Number of groups  =     14,907[/size]
  23. [size=12px]
  24. [/size]
  25. [size=12px]                                                Obs per group:[/size]
  26. [size=12px]                                                              min =          2[/size]
  27. [size=12px]                                                              avg =        5.6[/size]
  28. [size=12px]                                                              max =         10[/size]
  29. [size=12px]
  30. [/size]
  31. [size=12px]                                                LR chi2(18)       =    1240.63[/size]
  32. [size=12px]Log likelihood  = -33502.524                    Prob > chi2       =     0.0000[/size]
  33. [size=12px]
  34. [/size]
  35. [size=12px]------------------------------------------------------------------------------[/size]
  36. [size=12px]           y |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval][/size]
  37. [size=12px]-------------+----------------------------------------------------------------[/size]
  38. [size=12px]          x1 |   .0795028   .0575578     1.38   0.167    -.0333083     .192314[/size]
  39. [size=12px]          x2 |   .0461597   .0018417    25.06   0.000     .0425501    .0497694[/size]
  40. [size=12px]          x3 |   .1631089   .1312427     1.24   0.214     -.094122    .4203398[/size]
  41. [size=12px]          x4 |   .1588539   .0075223    21.12   0.000     .1441105    .1735972[/size]
  42. [size=12px]          x5 |  -.2460249   .0229823   -10.70   0.000    -.2910693   -.2009805[/size]
  43. [size=12px]          x6 |   .1922465   .0400458     4.80   0.000     .1137583    .2707348[/size]
  44. [size=12px]         x71 |  -.1979017   .0286929    -6.90   0.000    -.2541388   -.1416646[/size]
  45. [size=12px]         x72 |  -.3544013   .0326192   -10.86   0.000    -.4183338   -.2904689[/size]
  46. [size=12px]         x73 |  -.4583168   .0546164    -8.39   0.000     -.565363   -.3512706[/size]
  47. [size=12px]         x74 |  -.4871241   .0822347    -5.92   0.000    -.6483011   -.3259471[/size]
  48. [size=12px]         x75 |  -.9876566    .114091    -8.66   0.000    -1.211271   -.7640424[/size]
  49. [size=12px]         x76 |  -.3156806   .7020513    -0.45   0.653    -1.691676    1.060315[/size]
  50. [size=12px]          x8 |   .2712248   .0687965     3.94   0.000     .1363862    .4060633[/size]
  51. [size=12px]          x9 |  -.0192152   .0338481    -0.57   0.570    -.0855563    .0471258[/size]
  52. [size=12px]         x10 |    .246788   .0486554     5.07   0.000     .1514252    .3421509[/size]
  53. [size=12px]         x11 |   .1234697   .0235251     5.25   0.000     .0773613    .1695781[/size]
  54. [size=12px]         x12 |  -.0175256   .0268552    -0.65   0.514    -.0701608    .0351096[/size]
  55. [size=12px]         x13 |   .2512456   .0248795    10.10   0.000     .2024828    .3000084[/size]
  56. [size=12px]------------------------------------------------------------------------------[/size]
  57. [size=12px]
  58. [/size]
  59. [size=12px]. [/size]
  60. [size=12px]end of do-file[/size]
  61. [size=12px]
  62. [/size]
  63. [size=12px]. shapley2,stat(r2_p) group(x1,x2,x3,x4,x5,x6,x71 x72 x73 x74 x75 x76,x8,x9,x10,x11,x12,x13)[/size]
  64. [size=12px]invalid syntax[/size]
  65. [size=12px]r(198);[/size]
  66. [size=12px]
复制代码



二维码

扫码加我 拉你入群

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

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

关键词:Shapley 面板数据 LEY APL PLE

沙发
我就爱维C 发表于 2021-8-28 12:07:34
重现贴一些我的命令,不知道刚刚问什么乱码了
  1. xtset idind wave
  2. xtlogit y x1 x2 x3 x4 x5 x6 x71 x72 x73 x74 x75 x76 x8 x9 x10 x11 x12 x13,fe nolog
  3. shapley2, stat(r2_p)
  4. Slow algorithm chosen. Try to increase matsize to enable the faster algorithm
  5. group() required
  6. shapley2,stat(r2_p) group(x1,x2,x3,x4,x5,x6,x71 x72 x73 x74 x75 x76,x8,x9,x10,x11,x12,x13)
  7. invalid syntax
复制代码

藤椅
不哆啦 学生认证  发表于 2023-8-20 22:32:16
请问楼主知道怎么做了吗,我最近也在做面板数据的夏普利分解,一直苦于得不到结果,希望得到楼主回复!

板凳
芦苇齐 发表于 2024-2-1 16:39:26
请问楼主知道怎么解决吗,我也是用的固定效应模型,然后使用shapley2算不出结果

报纸
belle0223 发表于 2024-2-2 02:20:20
求问一下,如果年份不连续,也可以用shapley么?谢谢

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

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