全部版块 我的主页
论坛 休闲区 十二区 灌水吧
672 2
2022-09-15
做双因素固定效应模型,数据是2016——2021年34个城市的,6个解释变量全部被删,代码和结果如下,有大神帮忙看下怎么解决吗?非常感谢!


. xtset id year

Panel variable: id (unbalanced)
Time variable: year, 2016 to 2021
         Delta: 1 unit

. xtreg y x1 x2 x3 x4 x5 x6,fe
note: x1 omitted because of collinearity.
note: x2 omitted because of collinearity.
note: x3 omitted because of collinearity.
note: x4 omitted because of collinearity.
note: x5 omitted because of collinearity.
note: x6 omitted because of collinearity.

Fixed-effects (within) regression               Number of obs     =        204
Group variable: id                              Number of groups  =        204

R-squared:                                      Obs per group:
     Within  =      .                                         min =          1
     Between =      .                                         avg =        1.0
     Overall =      .                                         max =          1

                                                F(0,0)            =       0.00
corr(u_i, Xb) =      .                          Prob > F          =          .

------------------------------------------------------------------------------
           y | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
          x1 |          0  (omitted)
          x2 |          0  (omitted)
          x3 |          0  (omitted)
          x4 |          0  (omitted)
          x5 |          0  (omitted)
          x6 |          0  (omitted)
       _cons |   50.12745          .        .       .            .           .
-------------+----------------------------------------------------------------
     sigma_u |  48.122416
     sigma_e |          .
         rho |          .   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(203, 0) = .                         Prob > F =      .

.


二维码

扫码加我 拉你入群

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

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

全部回复
2022-9-22 12:51:33
你的解释变量是啥?什么性质的?
二维码

扫码加我 拉你入群

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

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

2022-9-26 17:44:17
你是把2016-2021这6个数当成了6个变量?如果是的话,那其实相当于6类,是不是设置5个变量应该就可以了,k类设置k-1个变量就可以了(普通的回归是这么办的,你可以试试)
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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