楼主: 秋岛信
480 2

【急】固定效应模型自变量全部因为共线性被删除 [推广有奖]

  • 0关注
  • 0粉丝

初中生

14%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
76 点
帖子
4
精华
0
在线时间
17 小时
注册时间
2022-9-15
最后登录
2023-10-18

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
做双因素固定效应模型,数据是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 =      .

.


二维码

扫码加我 拉你入群

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

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

关键词:固定效应模型 固定效应 共线性 自变量 Collinearity

你的解释变量是啥?什么性质的?

使用道具

藤椅
Iris7565 发表于 2022-9-26 17:44:17 |只看作者 |坛友微信交流群
你是把2016-2021这6个数当成了6个变量?如果是的话,那其实相当于6类,是不是设置5个变量应该就可以了,k类设置k-1个变量就可以了(普通的回归是这么办的,你可以试试)

使用道具

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

本版微信群
加JingGuanBbs
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-28 02:34