Stata 连享会: 聚类调整标准误笔记

Stata连享会   计量专题 || 精品课程 || 推文 || 公众号合集

Stata 连享会: 聚类调整标准误笔记_第1张图片
点击查看完整推文列表

2020寒假Stata现场班 (北京, 1月8-17日,连玉君-江艇主讲),「+助教招聘」

Stata 连享会: 聚类调整标准误笔记_第2张图片
2020寒假Stata现场班

2020连享会-文本分析与爬虫-现场班

西安, 3月26-29日,司继春-游万海 主讲   (附助教招聘)

Stata 连享会: 聚类调整标准误笔记_第3张图片
连享会-文本分析与爬虫专题班,西北工业大学,2020.3.26-29

几篇涉及实操的 blogs

  • 主要提供了 regaregxtreg 计算 Cluster-SE 时的区别,并提供了实操时的调整的方法。同时,还提供了完整的模拟分析 dofile
    • Is the file drawer too large? Standard Errors in Stata Strike Back

Stata 官网的 Blogs

  • How can the standard errors with the vce(cluster clustvar) option be smaller than those without the vce(cluster clustvar) option?
    当组内干扰项负相关时,clustered-SE 有可能比 robust-SE 小,但这种情况比较少见。Cameron, C. A., D. L. Miller, 2015, A practitioner’s guide to cluster-robust inference, Journal of Human Resources, 50 (2): 317-372. 文中对此有详细介绍。
  • 使用聚类调整标准误时如何标注参考文献? Which references should I cite when using the vce(cluster clustvar) option to obtain Stata’s cluster-correlated robust estimate of variance? 其实,只要标注这篇文章就够了,里面把经典的文献都梳理的很清楚:Cameron, C. A., D. L. Miller, 2015, A practitioner’s guide to cluster-robust inference, Journal of Human Resources, 50 (2): 317-372.

Stata 命令

  • White (1980) 异方差稳健型标准误
*-截面数据
reg y x, robust  
*-面板数据 加入反应个体效应的虚拟变量
areg y x, absorb(id) robust
  • 一维聚类调整异方差-序列相关稳健型标准误 (HAC)
*-双向固定效应模型
xtset id year
xtreg y x i.year, fe robust
xtreg y x i.year, fe vce(cluster id)  //与上一条命令等价
  • 二维聚类 SE
help vce2way     // Cameron et al. (2011), 可以估计二维SE, 支持 xtreg
webuse "nlswork.dta", clear
vce2way regress ln_wage age grade, cluster(idcode year)

一些重要的参考文献

  • Cameron, C. A., D. L. Miller, 2015, A practitioner’s guide to cluster-robust inference, Journal of Human Resources, 50 (2): 317-372. 非常全面的建议,里面也提供了各种设定下能够使用的 Stata 命令。
  • Petersen, M. A., 2009, Estimating standard errors in finance panel data sets: Comparing approaches, Review of Financial Studies, 22 (1): 435-480. A. Programming Advice - Stata 命令的使用建议 ,B. 文中未能呈现的其他表格 - 30页,C. 文中模拟过程 - dofile

关于我们

  • Stata连享会 由中山大学连玉君老师团队创办,定期分享实证分析经验。
  • 推文同步发布于 CSDN 、 和 知乎Stata专栏。可在百度中搜索关键词 「Stata连享会」查看往期推文。
  • 点击推文底部【阅读原文】可以查看推文中的链接并下载相关资料。
  • 欢迎赐稿: 欢迎赐稿。录用稿件达 三篇 以上,即可 免费 获得一期 Stata 现场培训资格。
  • E-mail: [email protected]
  • 往期精彩推文:一网打尽

Stata 连享会: 聚类调整标准误笔记_第4张图片
欢迎加入Stata连享会(公众号: StataChina)

你可能感兴趣的:(Stata 连享会: 聚类调整标准误笔记)