如何使用R中的Modelmary获得标准化的Beta系数?以及如何使用Modelsummary省略多个变量?
我正在使用Modelmary创建表。我想对标准化的估计(回归系数)进行标准化。我使用了lm.beta(),但是估计=给我非标准的系数。另外,我想使用COEF.OMITT取出多个变量。我该怎么做?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该解决方案仅使用
modelsummary
的开发版本起作用。此版本应在接下来的几周内使用Cran,但是您可以立即安装:在引擎盖下,
modelsummary
使用参数
软件包来从模型对象提取参数。 标准化参数直接传递到modelsummary()
,然后将其传递到参数
。COEF_OMIT
参数接受正则表达式。 请参阅文档以了解如何忽略几个系数。代码> coef_omit =“ x | y | z”:
This solution only works using the development version of
modelsummary
. This version should be on CRAN in the next few weeks, but you can install it now:Under the hood,
modelsummary
uses theparameters
package to extract parameters from model objects. As you can see here, that package can apply several different kinds of standardization. You can pass astandardize
argument directly tomodelsummary()
, which will then pass it down toparameters
.The
coef_omit
argument accepts regular expressions. See the documentation to learn how to omit several coefficients. ex:coef_omit="x|y|z"
For example: