R 中 rdrobust 包的回归输出表
我对 R 比较陌生,目前正在尝试根据我的稳健结果制作回归表。这是我的目标的一个示例:
我知道 rdrobust
modelsummary()
不支持,我必须使用 tidy.rdrobust
和 glance.rdrobust
才能使其适用。所以我的问题是如何在这两个命令(tidy,glance)中指定参数以使用 modelsummary 包获得所需的输出? 如图所示,我希望将结果变量/模型作为行,将三种方法的系数(带*)、SE、z 值和置信区间作为列。
正如我所说,我对 R 比较陌生,而且对一般编程语言也完全陌生。因此,这个问题可能不够具体,并且没有进行任何编码试验。也许无论如何有人可以帮助我。
多谢!
I am relatively new to R and currently trying to make a regression table from my rdrobust results. This is an example of what i am aiming for:
I know that rdrobust
is not supported by modelsummary()
and that I have to use tidy.rdrobust
and glance.rdrobust
to make it applicable. So my question is how to specify the parameters in these two commands (tidy,glance) to get the desired output with the modelsummary package?
As shown in the picture I want to have the outcome variables/models as rows and the coefficients (with*),SE,z value and confidence intervals for the three rd methods as columns.
As I said I am relatively new to R and and completely new to programming language in general. Therefore this question is probably not specific enough and provided without any coding trials. Maybe someone can help me anyway.
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使它不能满足您的所有要求,您也可以利用
modelsummary
的功能进行并排模型:https://vincentarelbundock.github.io/modelsummary/articles/modelsummary.html如果我们用虚拟实现数据,它将显示以下内容:
Even though it does not satisfy all your requirements, you could leverage the function of
modelsummary
for side-by-side-models: https://vincentarelbundock.github.io/modelsummary/articles/modelsummary.htmlIf we implement with dummy data, it will show the following: