楼主: ztpgoldeneye
14662 20

[编程问题求助] 关于robust命令的最优带宽选择 [推广有奖]

  • 0关注
  • 1粉丝

硕士生

51%

还不是VIP/贵宾

-

威望
0
论坛币
1413 个
通用积分
28.3517
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
331 点
帖子
29
精华
0
在线时间
323 小时
注册时间
2011-6-7
最后登录
2025-5-7

楼主
ztpgoldeneye 发表于 2019-4-27 04:27:27 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
问题描述如下:
1. 目前在做断点回归的试验,使用rdrobust命令,需要尝试不同方法(CV\CCT\IK法)设定下的最优带宽
    但是不同于各类公众号中的推文,option下的bwselect既没有直接提供CV、CCT、IK法的选项,也没有明确指出哪一项(mserd、mesetwo、msesum……等)对应哪种方法及其扩展。非统计专业出身,选项下的参考文献一时半会确实看不懂,如果有大佬知道答案是what请先告诉一下。至于why,我打算回头再补(真的会补……时间太赶……捂脸)。万分感谢。

2.面板固定效应(FE)设定下的RD:
   A. 如果用xtreg 或者xtivreg y x (x=iv)……if (x>-h & x<h) , fe , 其中h为带宽
       这里h需要使用非参估计出来的h*吗?还是说直接手动指定一个“合适的值”就可以。
   B. 如果在rdrobust命令下,将不能加入i.id之类虚拟变量,无法估计FE。
在我能搜索到的一些RD科普文章里提供的code看来,似乎认为rdrobust得到的窗宽提供给xtreg,fe得到的结论和rdrobust直接做是等价的,也就是直接把面板pool掉,然后rdrobust得到带宽进行近(dai)似(ti),这是可以的?

求统计和计量大佬解答,如果有上述未提及的其他文献参考,也烦请提示一下。

非常感谢!!!


二维码

扫码加我 拉你入群

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

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


沙发
黃河泉 在职认证  发表于 2019-4-27 09:50:08
1. rdrobust 有一选项
  1. bwselect(bwmethod) specifies the bandwidth selection procedure to be used. By default it computes both h and b, unless rho is specified, in which case it only computes h and sets b=h/rho.  Options are:
  2.         mserd one common MSE-optimal bandwidth selector for the RD treatment effect estimator.
  3.         msetwo two different MSE-optimal bandwidth selectors (below and above the cutoff) for the RD treatment effect estimator.
  4.         msesum one common MSE-optimal bandwidth selector for the sum of regression estimates (as opposed to difference thereof).
  5.         msecomb1 for min(mserd,msesum).
  6.         msecomb2 for median(msetwo,mserd,msesum), for each side of the cutoff separately.
  7.         cerrd one common CER-optimal bandwidth selector for the RD treatment effect estimator.
  8.         certwo two different CER-optimal bandwidth selectors (below and above the cutoff) for the RD treatment effect estimator.
  9.         cersum one common CER-optimal bandwidth selector for the sum of regression estimates (as opposed to difference thereof).
  10.         cercomb1 for min(cerrd,cersum).
  11.         cercomb2 for median(certwo,cerrd,cersum), for each side of the cutoff separately.
  12.         Note: MSE = Mean Square Error; CER = Coverage Error Rate.
  13.         Default is bwselect(mserd). For details on implementation see Calonico, Cattaneo and Titiunik (2014a), Calonico, Cattaneo and Farrell (2017), and Calonico, Cattaneo, Farrell and Titiunik (2018), and the companion software articles.
复制代码

藤椅
黃河泉 在职认证  发表于 2019-4-27 09:52:23
2. 有人这样做的吗?

板凳
ztpgoldeneye 发表于 2019-4-27 09:52:58
黃河泉 发表于 2019-4-27 09:50
1. rdrobust 有一选项
您的意思是说,确定mserd对应的就是CCT吗?如果是,那么CV和IK又该怎么做呢?

报纸
ztpgoldeneye 发表于 2019-4-27 09:53:06
黃河泉 发表于 2019-4-27 09:50
1. rdrobust 有一选项
您的意思是说,确定mserd对应的就是CCT吗?如果是,那么CV和IK又该怎么做呢?

地板
黃河泉 在职认证  发表于 2019-4-27 09:59:16
ztpgoldeneye 发表于 2019-4-27 09:53
您的意思是说,确定mserd对应的就是CCT吗?如果是,那么CV和IK又该怎么做呢?
你可能要查一下,你谈的似乎是旧指令了!

7
ztpgoldeneye 发表于 2019-4-27 10:08:56
黃河泉 发表于 2019-4-27 09:59
你可能要查一下,你谈的似乎是旧指令了!
已经db update和ssc install,replace了
从STATA J 14-4来看,option里直接提供CV、CCT、IK的才是旧指令……但是我就是需要这些旧指令啊……这个能回滚么?

8
黃河泉 在职认证  发表于 2019-4-27 15:30:01
ztpgoldeneye 发表于 2019-4-27 10:08
已经db update和ssc install,replace了
从STATA J 14-4来看,option里直接提供CV、CCT、IK的才是旧指令… ...
试试
  1. search st0366
复制代码
并安装!
已有 1 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
ztpgoldeneye + 5 + 1 + 1 + 1 真的帮到我了,感谢感谢

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

9
黃河泉 在职认证  发表于 2019-4-27 15:30:54
ztpgoldeneye 发表于 2019-4-27 10:08
已经db update和ssc install,replace了
从STATA J 14-4来看,option里直接提供CV、CCT、IK的才是旧指令… ...
该指令会被取代,是有它的道理在,实在不建议你这样做!

10
ztpgoldeneye 发表于 2019-4-27 15:53:14
黃河泉 发表于 2019-4-27 15:30
该指令会被取代,是有它的道理在,实在不建议你这样做!
大佬你太牛了……回滚成功!
哈哈又学了一招。
我也明白更新有更新的道理,但就目前来讲,至少旧命令可以得到我想做的结果。
回头有空了我再来研究一下新option到底是怎么回事。
关于问题2,是我之前的理解错了,已经不纠结了。
非常感谢!

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-18 04:57