【发布时间】:2021-11-27 19:38:35
【问题描述】:
我正在尝试在 Stata 中计算两阶段最小二乘法。我的数据集如下所示:
income bmi health_index asian black q_o_l age aide
100 19 99 1 0 87 23 1
0 21 87 1 0 76 29 0
1002 23 56 0 1 12 47 1
2200 24 67 1 0 73 43 0
2076 21 78 1 0 12 73 1
我正在尝试使用rdrobust 来估计治疗效果。我使用了以下代码:
rdrobust q_o_l aide health_index bmi income asian black age, c(10)
我用多种多项式形式改变了income 变量,并使用了多种带宽。我不断收到相同的错误消息:
c() should be set within the range of aide
我假设这与带宽有关。我该如何纠正?
【问题讨论】:
-
错误消息似乎与您的变量-aide-有关。
标签: statistics stata