全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
8278 22
2019-08-22

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


二维码

扫码加我 拉你入群

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

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

全部回复
2019-8-27 13:45:40
挺好的,谢谢黄老师总结,已经推广精华,大家多讨论
二维码

扫码加我 拉你入群

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

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

2019-8-27 16:46:36
黃河泉 发表于 2019-8-22 15:05
Stata 十大 (类) 外挂指令 (to be added/revised) :
  • 回归 (控制多重固定效应并允许多重聚类):(iv) ...
  • 挺不错的
    二维码

    扫码加我 拉你入群

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

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

    2019-8-27 17:00:31
    谢谢分享
    二维码

    扫码加我 拉你入群

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

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

    2019-8-27 18:02:13
    每个人有他自己的偏好,您若有有趣/有用的指令,请也分享一下。
    二维码

    扫码加我 拉你入群

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

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

    2019-8-27 23:30:02
    二维码

    扫码加我 拉你入群

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

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

    点击查看更多内容…
    栏目导航
    热门文章
    推荐文章

    说点什么

    分享

    扫码加好友,拉您进群
    各岗位、行业、专业交流群