楼主: hanfangfei
133348 76

[面板数据求助] stata中,如何在固定效应模型下同时控制行业和年份效应   [推广有奖]

11
jklj 发表于 2016-3-20 21:20:28
求问最后怎么解决的

12
50123 学生认证  发表于 2016-10-11 00:00:20
xi:xtreg y x1 x2 x3 x4 i.industry i.year, fe
这样就可以实现同时控制行业、年份和公司的固定效应。但是理论上控制公司固定效应之后,没有必要控制行业的固定效应。
已有 4 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
苁蓉紫荆 + 1 精彩帖子
葫芦娃大王 + 1 + 1 精彩帖子
黃河泉 + 3 + 3 + 3 分析的有道理
胡老 + 5 + 5 + 5 分析的有道理

总评分: 经验 + 1  论坛币 + 1  学术水平 + 9  热心指数 + 8  信用等级 + 8   查看全部评分

13
zabbyy 发表于 2016-12-14 09:45:41
hanfangfei 发表于 2015-5-10 15:41
我的公司代码为id  加入年份虚拟变量  然后控制公司效应  是不是
xi:xtreg y x1 x2 x3 i.year,fe clust ...
完全正确啊

14
黃河泉 在职认证  发表于 2016-12-15 09:43:12
50123 发表于 2016-10-11 00:00
xi:xtreg y x1 x2 x3 x4 i.industry i.year, fe
这样就可以实现同时控制行业、年份和公司的固定效应。但是 ...
你的讲法不太对(控制公司固定效应之后,没有必要控制行业的固定效应),这是不一样的概念!
已有 1 人评分论坛币 收起 理由
happy_287422301 + 100 热心帮助其他会员

总评分: 论坛币 + 100   查看全部评分

15
quanbaofan 发表于 2017-2-1 19:21:41
你加上固定效应后,还能用mfx 做边际效应么?

16
agathamf 发表于 2017-2-23 00:51:32
50123 发表于 2016-10-11 00:00
xi:xtreg y x1 x2 x3 x4 i.industry i.year, fe
这样就可以实现同时控制行业、年份和公司的固定效应。但是 ...
但是按这样回归后,结果是控制industry 出现多重共线被omitte了,是怎么回事呢?

note: _Iindustry_14 omitted because of collinearity
note: _Iindustry_15 omitted because of collinearity
note: _Iindustry_17 omitted because of collinearity
note: _Iindustry_18 omitted because of collinearity
note: _Iindustry_19 omitted because of collinearity
note: _Iindustry_20 omitted because of collinearity
note: _Iindustry_21 omitted because of collinearity
note: _Iindustry_22 omitted because of collinearity
note: _Iindustry_25 omitted because of collinearity
note: _Iindustry_26 omitted because of collinearity
note: _Iindustry_27 omitted because of collinearity
note: _Iindustry_28 omitted because of collinearity
note: _Iindustry_29 omitted because of collinearity
note: _Iindustry_30 omitted because of collinearity
note: _Iindustry_31 omitted because of collinearity
note: _Iindustry_32 omitted because of collinearity
note: _Iindustry_33 omitted because of collinearity
note: _Iindustry_34 omitted because of collinearity
note: _Iindustry_35 omitted because of collinearity
note: _Iindustry_36 omitted because of collinearity
note: _Iindustry_37 omitted because of collinearity
note: _Iindustry_38 omitted because of collinearity
note: _Iindustry_39 omitted because of collinearity
note: _Iindustry_40 omitted because of collinearity
note: _Iindustry_41 omitted because of collinearity

17
agathamf 发表于 2017-2-23 00:54:18
黃河泉 发表于 2016-12-15 09:43
你的讲法不太对(控制公司固定效应之后,没有必要控制行业的固定效应),这是不一样的概念!
请问这样回归后,STATA自动把industry omitted了,该怎么处理呢?

note: _Iindustry_14 omitted because of collinearity
note: _Iindustry_15 omitted because of collinearity
note: _Iindustry_17 omitted because of collinearity
note: _Iindustry_18 omitted because of collinearity
note: _Iindustry_19 omitted because of collinearity
note: _Iindustry_20 omitted because of collinearity
note: _Iindustry_21 omitted because of collinearity

18
黃河泉 在职认证  发表于 2017-2-23 06:49:43
agathamf 发表于 2017-2-23 00:54
请问这样回归后,STATA自动把industry omitted了,该怎么处理呢?

note: _Iindustry_14 omitted becau ...
你是"所有的"的产业都被 omitted 还是只是部分(如你所列)的产业被 omitted!如果是后者,这是时常碰到的,没什么需要处理的!
已有 1 人评分经验 收起 理由
葫芦娃大王 + 10 精彩帖子

总评分: 经验 + 10   查看全部评分

19
agathamf 发表于 2017-2-23 16:32:55
黃河泉 发表于 2017-2-23 06:49
你是"所有的"的产业都被 omitted 还是只是部分(如你所列)的产业被 omitted!如果是后者,这是时常碰到的 ...
是所有的被OMITTED了。我看了你在其他帖子的回复,使用了. reghdfe命令,就不会出现omitted了,但是变量的显著性会较使用xtreg进行FE回归时下降,这是什么原因呢?

20
黃河泉 在职认证  发表于 2017-2-23 17:49:54
agathamf 发表于 2017-2-23 16:32
是所有的被OMITTED了。我看了你在其他帖子的回复,使用了. reghdfe命令,就不会出现omitted了,但是变量的 ...
你要不要把两个结果 post 出来,我现在无从判断!

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

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