楼主: 阿袋
32966 71

[学习心得] stata skills:最新命定reghdfe--有效解决数据众多时加入固定效应的问题   [推广有奖]

贵宾

已卖:5773份资源

院士

16%

还不是VIP/贵宾

-

TA的文库  其他...

各科好书新书

投资人生

论文写作投稿实战

威望
0
论坛币
569387 个
通用积分
254.7643
学术水平
304 点
热心指数
347 点
信用等级
246 点
经验
88890 点
帖子
1681
精华
5
在线时间
2905 小时
注册时间
2007-6-10
最后登录
2025-9-8

楼主
阿袋 发表于 2015-5-17 11:26:56 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
以前用areg来加入固定效应进行回归比较多,但是最近用的数据固定效应数目太多,性能良好的电脑进行运算依旧速度极慢,于是搜寻解决办法,发现reghdfe能有效解决这个问题。你是否还有更好的解决方案?欢迎大家积极讨论!附上作者发表在stata journal的介绍文章 Stata Journal 2010 A simple feasible procedure to ?t models withhigh-dimensiona.pdf (246.74 KB)


作者本人Sergio Correia总结的这个命定的一些优点:


It performs linear and instrumental variable regressions while absorbing for any number of fixed effects. reghdfe builts heavily on the packages reg2hdfe by Paulo Guimaraes and a2reg by Amine Ouazad. Details and examples are included in the help file, but key features include:
Much faster than the alternatives (reg2hdfe, a2reg, ivreg2hdfe, felsdvreg, etc) in most scenarios. It's built in Mata and avoids some of the usual bottlenecks such as sorting the data every iteration or large memory consumption.


Allows more than two sets of highly dimensional fixed effects (HDFE), using the same absorb() syntax as areg.


Allows interactions of fixed effects: absorb(industry#year)


Allows absorbing for interactions with categorical variables. For instance, absorb(i.industry##c.t) will include industry fixed effects, and a different time trend for each industry.


Can run IV/2SLS regressions using either -ivregress- or -ivreg2- (if avaiable).


Allows factor variable and time series in the varlists.


In OLS regressions, it also reports FStats for the FEs (see option -nested-) as well as correlation between the fixed effects and xb.



二维码

扫码加我 拉你入群

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

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

关键词:skills Stata Skill kills tata 电脑

已有 4 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
日新少年 + 1 + 1 + 1 精彩帖子
xddlovejiao1314 + 20 + 2 + 1 + 2 热心帮助其他会员
SpencerMeng + 20 + 2 + 2 + 2 精彩帖子
crystal8832 + 10 + 1 + 1 热心帮助其他会员

总评分: 经验 + 20  论坛币 + 30  学术水平 + 6  热心指数 + 5  信用等级 + 5   查看全部评分

本帖被以下文库推荐

沙发
hua2007 发表于 2015-5-17 12:05:16

回帖奖励 +2

感谢分享!

藤椅
wwy6631 发表于 2015-5-17 18:14:38

回帖奖励 +2

板凳
heric221 在职认证  发表于 2015-5-17 18:29:41

回帖奖励 +2

谢谢分享!

报纸
月亮米拉 发表于 2015-5-17 20:35:17

回帖奖励 +2

楼主要是能时不时发些STATA的新命令就更好了!谢谢你啊!

地板
月亮米拉 发表于 2015-5-17 20:36:20
多问一句,你是怎么下载的?

7
谭华伟 发表于 2015-5-17 22:08:18

回帖奖励 +2

支持,支持!

8
jianke22 在职认证  发表于 2015-5-17 22:21:25

回帖奖励 +2

赞~~~~~~~~~~~~~~~~~~~

9
lichen8083 发表于 2015-5-17 22:39:43

回帖奖励 +2

啥意思,没懂

10
阿袋 发表于 2015-5-18 00:01:56
月亮米拉 发表于 2015-5-17 20:36
多问一句,你是怎么下载的?
google 搜索下载的

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

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