打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
互助问答第549期:reghdfe回归命令问题

机制检验问题

尊敬的各位老师     

     请问一下老师,reghdfe回归控制了时间效应、地区和行业交互固定效应,输出结果时应该如何添加命令才能使表格结果自动展示时间效应yes,地区行业交互yes。比如说,普通reg y x c i.year i.indcd, r ,这样的结果输出时,在reg2docx后面添加indicate(year=*.year  indcd=*.indcd)就可以了。这个问题已经困扰我一段时间了。


sysuse auto,clear

* Run and store regressions

reghdfe price weight length, a(turn) keepsing

estimates store model1

reghdfe price weight length, a(turn trunk) keepsing

estimates store model2

reghdfe price weight length, a(turn foreign) keepsing

estimates store model2

* Prepare estimates for -estout-

 estfe . model*, labels(turn "Turn FE" turn#trunk "Turn-Trunk FE")

 return list

* Run estout/esttab

 esttab . model* , indicate("Length Controls=length" `r(indicate_fe)')

* Return stored estimates to their previous state

 estfe . model*, restore

详情请参见

http://scorreia.com/software/reghdfe/faq.html#how-can-i-combine-reghdfe-with-esttab-or-estout

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Stata:一文读懂eststo存储输出结果
STATA結果以Excel、WORD 以及LaTex編譯格式輸出
Stata输出统计结果到Excel或word
没有这5个Stata命令, 我真的会活不下去!
Stata:输出漂亮的LaTeX表格
Stata:固定效应分析新命令-sumhdfe
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服