更新时间:2023-02-26 22:23:13
最近的 rdrobust 版本 1.0.1 应该处理这个错误.从分类变量状态"产生固定效应您可以执行以下操作:
The recent rdrobust version 1.0.1 should take care of this error. To generate fixed effects from a categorical variable "state" you can do something like:
state.f = factor(state)
state.d = model.matrix(~state.f+0)
out = rdrobust(y, x, covs = state.d)