楼主: 黃河泉
6952 22

[学习心得] 我常用的 Stata 十大外挂指令 (to be added/revised)   [推广有奖]

大师

52%

还不是VIP/贵宾

-

威望
3
论坛币
34526 个
通用积分
55861.1940
学术水平
3538 点
热心指数
3698 点
信用等级
2921 点
经验
308746 点
帖子
14500
精华
12
在线时间
7393 小时
注册时间
2016-7-9
最后登录
2024-4-19

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

Stata 十大 (类) 外挂指令 (to be added/revised)


  • 回归 (控制多重固定效应并允许多重聚类):(iv)reghdfe (linear regression absorbing multiple levels of fixed effects, allowingtwo- and multi-way clustering)
  • 回归 (工具变量):(xt)ivreg2 (Extendedinstrumental variables/2SLS, GMM and AC/HAC, LIML and k-class regression)
  • 分组统计量与回归 (一般人回归时资料处理或变量建立,你想的到与你想不到的都可以做):a.rangestat/rangerun(Generate statistics using observations within range/Run Stata commands onobservations within range)  b. asreg/asrol(Rolling window regressions and by(group) regressions/Generatesrolling-window/groups descriptive statistics)
  • (允许非典型) 分组统计量与回归runby -- Run Stata commands on by-groupsof observations (让所有指令都可 byable)
  • 缺失值之处理与填补mipolate (Interpolate/extrapolate values)     
  • 图形tabplot/catplot, coefplot.
  • 时间变量转换

      a. numdate -- Generate numeric date-time variable

      b. convdate-- Convert numeric date-time variable, generating variable of another date-timetype

      c.  extrdate-- Generate date or time component from date-time variable   

  • 各种结果之汇整 (word/excel,各有优缺点):

       a. outreg2 -- Arrange regression, summary, andtabulation into an illustrative table (我较熟悉常用)

       b. estout/esttab-- Making regression tables from stored estimates (唯一适合在讲义中编制表格)

       c. asdoc-- An easy way of creating publication quality tables from Stata commands (特别是high-dimensional correlation matrix,我对作者建议的,呵呵)

       d. sum2docxcorr2docx -- Report summary statistics and Pearson&Spearman coefficient ofcorrelation  to formatted table in DOCXfile (很方便使用)


  • 我的讲义编排: texdoc -- Create a LaTeX document including Stata output


二维码

扫码加我 拉你入群

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

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


已有 4 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
日新少年 + 3 + 3 + 3 精彩帖子
zbin7451f + 100 + 1 + 1 + 1 精彩帖子
arthistory4 + 100 精彩帖子
statax + 20 精彩帖子

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

本帖被以下文库推荐

沙发
客初 企业认证  学生认证  发表于 2019-8-27 13:45:40 |只看作者 |坛友微信交流群
挺好的,谢谢黄老师总结,已经推广精华,大家多讨论

使用道具

藤椅
瑾初gg 发表于 2019-8-27 16:46:36 来自手机 |只看作者 |坛友微信交流群
黃河泉 发表于 2019-8-22 15:05
Stata 十大 (类) 外挂指令 (to be added/revised) :
  • 回归 (控制多重固定效应并允许多重聚类):(iv) ...
  • 挺不错的

    使用道具

    板凳
    hyq2003 发表于 2019-8-27 17:00:31 |只看作者 |坛友微信交流群
    谢谢分享

    使用道具

    报纸
    黃河泉 在职认证  发表于 2019-8-27 18:02:13 |只看作者 |坛友微信交流群
    每个人有他自己的偏好,您若有有趣/有用的指令,请也分享一下。

    使用道具

    地板
    weifeng717719 发表于 2019-8-27 23:30:02 |只看作者 |坛友微信交流群

    使用道具

    7
    西门高 发表于 2019-8-28 10:03:32 |只看作者 |坛友微信交流群
    谢谢分享

    使用道具

    8
    jonathan821 发表于 2019-8-28 12:56:07 |只看作者 |坛友微信交流群

    使用道具

    9
    beijin2008 发表于 2019-8-28 13:43:43 |只看作者 |坛友微信交流群
    谢谢黄老师分享

    使用道具

    10
    黃河泉 在职认证  发表于 2019-8-28 19:24:04 |只看作者 |坛友微信交流群
    客初 发表于 2019-8-27 13:45
    挺好的,谢谢黄老师总结,已经推广精华,大家多讨论
    感谢推广!

    使用道具

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

    本版微信群
    加好友,备注jltj
    拉您入交流群

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

    GMT+8, 2024-4-23 14:08