楼主: 黃河泉
73295 267

[程序分享] 【断点回归】之 Stata 程序   [推广有奖]

181
黃河泉 在职认证  发表于 2018-7-31 07:35:50 |只看作者 |坛友微信交流群
们博糖博尤 发表于 2018-7-30 22:19
黄老师您好,我在做Mccrary密度函数检验时,P值为0.98323,在0.05水平上不显著,这样可以说驱动变量在断点处 ...
我怎会知道"你和其他已经发表论文使用相同的数据库,做出的驱动变量密度检验不同呢"?

使用道具

182
zhangkaixia0728 学生认证  发表于 2018-9-17 10:55:36 |只看作者 |坛友微信交流群
老师好,最近用断点回归分析时,想选择CV、IK以及CCT 等作为最优带宽,但命令执行时一直报错如下:
bwselect() options IK, CCT and CV have been depricated. Please see help for new options
r(7);
想请问老师这种情况该如何处理?

使用道具

183
黃河泉 在职认证  发表于 2018-9-17 11:03:46 |只看作者 |坛友微信交流群
zhangkaixia0728 发表于 2018-9-17 10:55
老师好,最近用断点回归分析时,想选择CV、IK以及CCT 等作为最优带宽,但命令执行时一直报错如下:
bwsele ...
请将所有指令发出来!你有更新你的所有程序吗?

使用道具

184
zhangkaixia0728 学生认证  发表于 2018-9-17 13:00:58 |只看作者 |坛友微信交流群
黃河泉 发表于 2018-9-17 11:03
请将所有指令发出来!你有更新你的所有程序吗?
老师,您好,我用的命令如下:
rdrobust y x, bwselect(CCT) c(0) p(1) kernel(uniform)
stata版本是14版的
不知如何更新程序,也不太清楚是否是版本的原因
看到几年前有人用这个命令是可以的,我现在一直报错
先谢谢老师了

使用道具

185
黃河泉 在职认证  发表于 2018-9-17 15:45:40 |只看作者 |坛友微信交流群
zhangkaixia0728 发表于 2018-9-17 13:00
老师,您好,我用的命令如下:
rdrobust y x, bwselect(CCT) c(0) p(1) kernel(uniform)
stata版本是14 ...
请 search rdrobust 并更新!

使用道具

186
zhangkaixia0728 学生认证  发表于 2018-9-17 16:52:48 |只看作者 |坛友微信交流群
黃河泉 发表于 2018-9-17 15:45
请 search rdrobust 并更新!
谢谢老师,我检查过了,rdboust命令好像已经是最新了,但是依然报错。搜索相关信息时,看到有人说:CCT带宽、IK带宽和CV带宽。如今,这3种带宽估计方法已被MSE带宽、CER带宽取代。。。所以做的时候都是默认MSE带宽的,不能设置CV或其他带宽了。

使用道具

187
黃河泉 在职认证  发表于 2018-9-17 17:01:01 |只看作者 |坛友微信交流群
zhangkaixia0728 发表于 2018-9-17 16:52
谢谢老师,我检查过了,rdboust命令好像已经是最新了,但是依然报错。搜索相关信息时,看到有人说:CCT带 ...
既然是最新版,那就应该看看 help rdrobust,里面似乎没有提到 CCT 等选项 (错误讯息也指出这些已经过期了),也请注意新选项。
  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.
复制代码

使用道具

188
zhangkaixia0728 学生认证  发表于 2018-9-17 18:13:54 |只看作者 |坛友微信交流群
黃河泉 发表于 2018-9-17 17:01
既然是最新版,那就应该看看 help rdrobust,里面似乎没有提到 CCT 等选项 (错误讯息也指出这些已经过期了 ...
好的,谢谢老师,主要是因为最近一篇外文的审稿意见回来了,审稿人提出需要用CV方法来计算最优带宽,我看了几天一直没找到,就有点懵了。不过谢谢老师啦!非常感谢,一直给我回复。

使用道具

189
黃河泉 在职认证  发表于 2018-9-17 19:07:26 |只看作者 |坛友微信交流群
zhangkaixia0728 发表于 2018-9-17 18:13
好的,谢谢老师,主要是因为最近一篇外文的审稿意见回来了,审稿人提出需要用CV方法来计算最优带宽,我看 ...
希望您的文章早日被接受!

使用道具

190
还好HU 学生认证  发表于 2018-10-27 11:28:49 |只看作者 |坛友微信交流群
黄老师您好,看您之前上传的断点回归案例应该是面板数据的,请问有关于时间序列的清晰断点回归案例可以分享么?

使用道具

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

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

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

GMT+8, 2024-4-28 04:22