楼主: JiayuSong
1607 5

[回归分析求助] RD断点回归求助 rdrobust和rdbwselect均报错 [推广有奖]

  • 0关注
  • 0粉丝

初中生

42%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
11.2358
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
76 点
帖子
4
精华
0
在线时间
30 小时
注册时间
2023-9-13
最后登录
2025-12-12

楼主
JiayuSong 发表于 2024-5-22 10:11:05 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
在用rdrobust和rdbwselect指令时,stata均报出如下错误,不知道是哪里出了问题呀,请求各位大佬解答。数据是用的CFPS四年的数据,一共有10000多个观测值。

指令:rdrobust rlfzc age,c(60.5) fuzzy(NRSP)  bwselect(msesum) vce(cluster fid)
结果:rdrobust() not able to compute the loc. poly. bandwidth (h) above the threshold. Please run rdbwselect() for more information}
r(125);

指令:rdbwselect rlfzc age,c(60.5) all
结果:Invertibility problem in the computation of preliminary bandwidth below the thresholdInvertibility problem in the computation of preliminary bandwidth above the thresholdInvertibility problem in the computation of bias bandwidth (b) below the thresholdInvertibility problem in the computation of bias bandwidth (b) above the thresholdInvertibility problem in the computation of loc. poly. bandwidth (h) below the thresholdInvertibility problem in the computation of loc. poly. bandwidth (h) above the threshold
Bandwidth estimators for sharp RD local polynomial regression.

   Cutoff c = 60.5 | Left of c  Right of c            Number of obs =      10458
-------------------+----------------------            Kernel        = Triangular
     Number of obs |      5983        4475            VCE method    =         NN
        Min of age |    50.000      61.000
        Max of age |    60.000      70.000
    Order est. (p) |         1           1
    Order bias (q) |         2           2

Outcome: rlfzc. Running variable: age.
--------------------------------------------------------------------------------
                   |         BW est. (h)          |        BW bias (b)
            Method | Left of c         Right of c | Left of c        Right of c
-------------------+------------------------------+-----------------------------
             mserd |         .                  . |         .                 .
            msetwo |         .                  . |         .                 .
            msesum |         .                  . |         .                 .
          msecomb1 |         .                  . |         .                 .
          msecomb2 |         .                  . |         .                 .
-------------------+------------------------------+-----------------------------
             cerrd |         .                  . |         .                 .
            certwo |         .                  . |         .                 .
            cersum |         .                  . |         .                 .
          cercomb1 |         .                  . |         .                 .
          cercomb2 |         .                  . |         .                 .
--------------------------------------------------------------------------------



二维码

扫码加我 拉你入群

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

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

关键词:robust Select Elect 断点回归 bust

截屏2024-05-22 10.04.14.png (88.33 KB)

rdbwselect报错

rdbwselect报错

截屏2024-05-22 10.03.45.png (17.59 KB)

rdrobust报错

rdrobust报错

沙发
赵安豆 发表于 2024-5-22 22:53:37
从错误信息来看,你在使用rdrobust进行断点回归分析时遇到了问题。首先,`rdrobust()` 无法计算局部多项式带宽(h),这可能是因为带宽选择不正确或者数据在阈值附近的问题。然后,当你尝试使用 `rdbwselect()` 命令预选带宽时,也出现了计算初步带宽的可逆性问题。

为了解决这些问题,你可以尝试以下步骤:

1. 检查数据:确保年龄变量(age)和RLFZC变量在60.5断点附近有足够的变化,且无缺失值或异常值。

2. 尝试不同带宽选择方法:`rdbwselect()` 提供了多种带宽选择方法,如 `all`、`hsheather` 和 `silverman` 等。你可以尝试用不同的方法看看是否有改善,例如:
   ```
   rdbwselect rlfzc age, c(60.5) method(silverman)
   ```

3. 调整阈值:如果断点60.5可能导致问题,可以尝试稍微调整这个阈值,看是否能成功运行。

4. 使用更简单的模型或方法:如果你的数据集非常大,尝试使用更简单的估计方法可能有所帮助,例如 `rdrobust` 的默认带宽选择或者不使用模糊回归 (`fuzzy(0)` 或者省略该选项)。

5. 检查群组变量(cluster fid):确保该变量正确地反映了集群结构,并且没有重复或缺失的值。

如果以上方法都无法解决问题,你可能需要更深入地研究数据和问题的具体情况。你也可以在Statalist等论坛上寻求帮助,那里有许多 stata 专家可以提供更专业的指导。

此文本由CAIE学术大模型生成,添加下方二维码,优先体验功能试用



藤椅
maodongjun 发表于 2024-5-23 09:04:20
你是用面板数据做断点,rdrobust命令它能处理面板数据断点吗?

板凳
JiayuSong 发表于 2024-5-23 11:45:52
maodongjun 发表于 2024-5-23 09:04
你是用面板数据做断点,rdrobust命令它能处理面板数据断点吗?
您好,感谢您的回答,我使用的是四年的混合截面数据。

报纸
理性金融打工人 发表于 2024-7-30 10:43:59 来自手机
JiayuSong 发表于 2024-5-22 10:11
在用rdrobust和rdbwselect指令时,stata均报出如下错误,不知道是哪里出了问题呀,请求各位大佬解答。数据是 ...
请问您的问题解决了吗,我也遇到了类似的问题

地板
chardksfkk 学生认证  发表于 2024-12-22 18:45:45
我也遇到了同样的问题,但指定带宽时可以运行,并且结果显著。若要运行求最优带宽的命令(bwselect或者rdbwselect),就会显示和楼主一样的报错。

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-22 21:07