楼主: louhoucao
4649 9

[面板数据求助] 双固定效应 时间共线性 [推广有奖]

  • 0关注
  • 0粉丝

等待验证会员

初中生

47%

还不是VIP/贵宾

-

威望
0
论坛币
694 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
126 点
帖子
13
精华
0
在线时间
18 小时
注册时间
2017-1-21
最后登录
2020-5-16

楼主
louhoucao 发表于 2017-3-30 22:25:31 |AI写论文
5论坛币
1998-2015年的省际面板数据,stata双固定模型,引入时间效应时,出现下述情况,时间是从year2开始的啊,还存在共线性,求解答
note: year2 omitted because of collinearity
note: year3 omitted because of collinearity
note: year4 omitted because of collinearity
note: year5 omitted because of collinearity
note: year6 omitted because of collinearity
note: year7 omitted because of collinearity
note: year8 omitted because of collinearity
note: year9 omitted because of collinearity
note: year10 omitted because of collinearity
note: year11 omitted because of collinearity
note: year12 omitted because of collinearity
note: year13 omitted because of collinearity
note: year14 omitted because of collinearity
note: year15 omitted because of collinearity
note: year16 omitted because of collinearity
note: year17 omitted because of collinearity
note: year18 omitted because of collinearity


关键词:固定效应 共线性 Collinearity omitted Because because 模型

沙发
黃河泉 在职认证  发表于 2017-3-31 06:59:41
请将你的指令写出来(包括 xtset ooo xxx)!
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
蓝色 + 3 + 3 + 3 我很赞同

总评分: 学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

藤椅
蓝色 发表于 2017-3-31 07:49:05
不能只列出结果让别人猜

板凳
louhoucao 发表于 2017-3-31 11:23:55
黃河泉 发表于 2017-3-31 06:59
请将你的指令写出来(包括 xtset ooo xxx)!
. xtset year province
       panel variable:  year (strongly balanced)
        time variable:  province, 1 to 31
                delta:  1 unit

. tab year,gen(year)

       year |      Freq.     Percent        Cum.
------------+-----------------------------------
       1998 |         31        5.56        5.56
       1999 |         31        5.56       11.11
       2000 |         31        5.56       16.67
       2001 |         31        5.56       22.22
       2002 |         31        5.56       27.78
       2003 |         31        5.56       33.33
       2004 |         31        5.56       38.89
       2005 |         31        5.56       44.44
       2006 |         31        5.56       50.00
       2007 |         31        5.56       55.56
       2008 |         31        5.56       61.11
       2009 |         31        5.56       66.67
       2010 |         31        5.56       72.22
       2011 |         31        5.56       77.78
       2012 |         31        5.56       83.33
       2013 |         31        5.56       88.89
       2014 |         31        5.56       94.44
       2015 |         31        5.56      100.00
------------+-----------------------------------
      Total |        558      100.00

. xtreg LNUPG LNURB LNCON LNINV LNLAB LNRD LNTRA year2-year18,fe
note: year2 omitted because of collinearity
note: year3 omitted because of collinearity
note: year4 omitted because of collinearity
note: year5 omitted because of collinearity
note: year6 omitted because of collinearity
note: year7 omitted because of collinearity
note: year8 omitted because of collinearity
note: year9 omitted because of collinearity
note: year10 omitted because of collinearity
note: year11 omitted because of collinearity
note: year12 omitted because of collinearity
note: year13 omitted because of collinearity
note: year14 omitted because of collinearity
note: year15 omitted because of collinearity
note: year16 omitted because of collinearity
note: year17 omitted because of collinearity
note: year18 omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       558
Group variable: year                            Number of groups   =        18

R-sq:  within  = 0.6277                         Obs per group: min =        31
       between = 0.8671                                        avg =      31.0
       overall = 0.6622                                        max =        31

                                                F(6,534)           =    150.07
corr(u_i, Xb)  = 0.1487                         Prob > F           =    0.0000

------------------------------------------------------------------------------
       LNUPG |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       LNURB |   .0439046   .0062297     7.05   0.000     .0316668    .0561424
       LNCON |   -.015079   .0058769    -2.57   0.011    -.0266236   -.0035344
       LNINV |   .0070174   .0043267     1.62   0.105    -.0014821    .0155169
       LNLAB |  -.0660194   .0109014    -6.06   0.000    -.0874343   -.0446044
        LNRD |   .0262884   .0024539    10.71   0.000     .0214679    .0311089
       LNTRA |   .0176212   .0016334    10.79   0.000     .0144126    .0208298
       year2 |          0  (omitted)
       year3 |          0  (omitted)
       year4 |          0  (omitted)
       year5 |          0  (omitted)
       year6 |          0  (omitted)
       year7 |          0  (omitted)
       year8 |          0  (omitted)
       year9 |          0  (omitted)
      year10 |          0  (omitted)
      year11 |          0  (omitted)
      year12 |          0  (omitted)
      year13 |          0  (omitted)
      year14 |          0  (omitted)
      year15 |          0  (omitted)
      year16 |          0  (omitted)
      year17 |          0  (omitted)
      year18 |          0  (omitted)
       _cons |    1.81682   .0305052    59.56   0.000     1.756895    1.876745
-------------+----------------------------------------------------------------
     sigma_u |  .00772282
     sigma_e |  .02756349
         rho |  .07278835   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0:     F(17, 534) =     1.91             Prob > F = 0.0149

报纸
louhoucao 发表于 2017-3-31 11:26:03
蓝色 发表于 2017-3-31 07:49
不能只列出结果让别人猜
抱歉 我把命令和结果粘上啦 还望大神赐教
. xtset year province
       panel variable:  year (strongly balanced)
        time variable:  province, 1 to 31
                delta:  1 unit

. tab year,gen(year)

       year |      Freq.     Percent        Cum.
------------+-----------------------------------
       1998 |         31        5.56        5.56
       1999 |         31        5.56       11.11
       2000 |         31        5.56       16.67
       2001 |         31        5.56       22.22
       2002 |         31        5.56       27.78
       2003 |         31        5.56       33.33
       2004 |         31        5.56       38.89
       2005 |         31        5.56       44.44
       2006 |         31        5.56       50.00
       2007 |         31        5.56       55.56
       2008 |         31        5.56       61.11
       2009 |         31        5.56       66.67
       2010 |         31        5.56       72.22
       2011 |         31        5.56       77.78
       2012 |         31        5.56       83.33
       2013 |         31        5.56       88.89
       2014 |         31        5.56       94.44
       2015 |         31        5.56      100.00
------------+-----------------------------------
      Total |        558      100.00

. xtreg LNUPG LNURB LNCON LNINV LNLAB LNRD LNTRA year2-year18,fe
note: year2 omitted because of collinearity
note: year3 omitted because of collinearity
note: year4 omitted because of collinearity
note: year5 omitted because of collinearity
note: year6 omitted because of collinearity
note: year7 omitted because of collinearity
note: year8 omitted because of collinearity
note: year9 omitted because of collinearity
note: year10 omitted because of collinearity
note: year11 omitted because of collinearity
note: year12 omitted because of collinearity
note: year13 omitted because of collinearity
note: year14 omitted because of collinearity
note: year15 omitted because of collinearity
note: year16 omitted because of collinearity
note: year17 omitted because of collinearity
note: year18 omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       558
Group variable: year                            Number of groups   =        18

R-sq:  within  = 0.6277                         Obs per group: min =        31
       between = 0.8671                                        avg =      31.0
       overall = 0.6622                                        max =        31

                                                F(6,534)           =    150.07
corr(u_i, Xb)  = 0.1487                         Prob > F           =    0.0000

------------------------------------------------------------------------------
       LNUPG |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       LNURB |   .0439046   .0062297     7.05   0.000     .0316668    .0561424
       LNCON |   -.015079   .0058769    -2.57   0.011    -.0266236   -.0035344
       LNINV |   .0070174   .0043267     1.62   0.105    -.0014821    .0155169
       LNLAB |  -.0660194   .0109014    -6.06   0.000    -.0874343   -.0446044
        LNRD |   .0262884   .0024539    10.71   0.000     .0214679    .0311089
       LNTRA |   .0176212   .0016334    10.79   0.000     .0144126    .0208298
       year2 |          0  (omitted)
       year3 |          0  (omitted)
       year4 |          0  (omitted)
       year5 |          0  (omitted)
       year6 |          0  (omitted)
       year7 |          0  (omitted)
       year8 |          0  (omitted)
       year9 |          0  (omitted)
      year10 |          0  (omitted)
      year11 |          0  (omitted)
      year12 |          0  (omitted)
      year13 |          0  (omitted)
      year14 |          0  (omitted)
      year15 |          0  (omitted)
      year16 |          0  (omitted)
      year17 |          0  (omitted)
      year18 |          0  (omitted)
       _cons |    1.81682   .0305052    59.56   0.000     1.756895    1.876745
-------------+----------------------------------------------------------------
     sigma_u |  .00772282
     sigma_e |  .02756349
         rho |  .07278835   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0:     F(17, 534) =     1.91             Prob > F = 0.0149

地板
蓝色 发表于 2017-3-31 13:31:55
https://bbs.pinggu.org/thread-5498582-1-1.html
看这里7楼解释
但你最好先看看伍德里奇的计量经济学导论的面板数据的理论。

7
ayzzya 发表于 2017-3-31 15:05:34
支持支持,学习了

8
欧阳峰少 学生认证  发表于 2017-8-11 13:00:05
xtset year province  设置反了!!

9
欧阳峰少 学生认证  发表于 2017-8-11 13:00:32

xtset year province  设置反了!!

10
Bigeyes 发表于 2022-4-18 10:40:55
欧阳峰少 发表于 2017-8-11 13:00
xtset year province  设置反了!!
这个没什么影响,  xtset year province 和xtset  province year 应该都可以

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

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