楼主: limboom
14338 5

[面板数据求助] stata中固定效应的因为共线性被省略 [推广有奖]

  • 0关注
  • 0粉丝

本科生

46%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
1.5000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
222 点
帖子
5
精华
0
在线时间
191 小时
注册时间
2018-6-11
最后登录
2022-8-13

楼主
limboom 学生认证  发表于 2019-1-4 20:31:37 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
小白求助…

在stata中控制国家和年份的固定效应,国家总被省略,这样的话还能在结果中报告已控制国家固定效应吗?

代码是这样的
xtset id year

xi:xtreg mv llh1 scl un gh jy i.year i.code,fe

note: _Iyear_2014 omitted because of collinearity
note: _Icode_2 omitted because of collinearity
note: _Icode_3 omitted because of collinearity
note: _Icode_4 omitted because of collinearity
note: _Icode_5 omitted because of collinearity
note: _Icode_6 omitted because of collinearity
note: _Icode_7 omitted because of collinearity
note: _Icode_8 omitted because of collinearity
note: _Icode_9 omitted because of collinearity
note: _Icode_10 omitted because of collinearity
note: _Icode_11 omitted because of collinearity
note: _Icode_12 omitted because of collinearity
note: _Icode_13 omitted because of collinearity
note: _Icode_14 omitted because of collinearity
note: _Icode_15 omitted because of collinearity
note: _Icode_16 omitted because of collinearity
note: _Icode_17 omitted because of collinearity
note: _Icode_18 omitted because of collinearity
note: _Icode_19 omitted because of collinearity
note: _Icode_20 omitted because of collinearity
note: _Icode_21 omitted because of collinearity
note: _Icode_22 omitted because of collinearity
note: _Icode_23 omitted because of collinearity
note: _Icode_24 omitted because of collinearity
note: _Icode_25 omitted because of collinearity
note: _Icode_26 omitted because of collinearity
note: _Icode_27 omitted because of collinearity
note: _Icode_28 omitted because of collinearity
note: _Icode_29 omitted because of collinearity
note: _Icode_30 omitted because of collinearity
note: _Icode_31 omitted because of collinearity
note: _Icode_32 omitted because of collinearity
note: _Icode_33 omitted because of collinearity
note: _Icode_34 omitted because of collinearity
note: _Icode_35 omitted because of collinearity
note: _Icode_36 omitted because of collinearity
二维码

扫码加我 拉你入群

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

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

关键词:固定效应 共线性

沙发
蓝色土耳其2013 在职认证  学生认证  发表于 2019-1-5 01:39:46 来自手机
limboom 发表于 2019-1-4 20:31
小白求助…

在stata中控制国家和年份的固定效应,国家总被省略,这样的话还能在结果中报告已控制国家固定 ...
https://bbs.pinggu.org/thread-6586655-1-1.html<br>
老板玩空间计量么

藤椅
HXB1995 发表于 2019-11-12 16:16:27
这种情况好像只要不加fe就可以了哇?我的是截面数据logit回归也遇到了这种情况,就很迷

板凳
Sea.Zeng 发表于 2019-11-12 16:33:56
控制年份和国家固定效应,正确的代码应该是xtreg mv llh1 scl un gh jy i.year, fe;另外,也可以用reg mv llh1 scl un gh jy i.year i.code。以上两种代码完全等价。由于你用了xtreg命令,就不用再加个体虚拟变量了。

报纸
七月流水 发表于 2019-12-9 11:50:19
Sea.Zeng 发表于 2019-11-12 16:33
控制年份和国家固定效应,正确的代码应该是xtreg mv llh1 scl un gh jy i.year, fe;另外,也可以用reg mv  ...
请问加入i.year之后,时间效应在回归结果中有部分年份被省略是怎么回事呢

地板
Sea.Zeng 发表于 2019-12-15 15:27:17
七月流水 发表于 2019-12-9 11:50
请问加入i.year之后,时间效应在回归结果中有部分年份被省略是怎么回事呢
可能也是多重共线性的原因,不过影响应该不大,直接用你关注变量的系数应该就可以。

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

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