“ show.std”函数删除tab_plot(sjPlot)中的p值格式

问题描述 投票:0回答:1

我这里有一个简单的线性模型:

step1

我可以制作一个使用sjPlot表示它的表:

tab_model(step1)

enter image description here

但是添加标准化的beta值会更改p值的格式:

tab_model(step1,
          show.std = T)

enter image description here

是否有办法阻止这种情况的发生?

linear-regression sjplot
1个回答
0
投票

Daniel提供了解决方案。这是sjPlot中的错误。

使用devtools安装sjPlot起作用:

install_github("strengejacke/sjPlot")

我的权限有问题,所以我还必须更改安装位置:

with_libpaths(new = "C:/Program Files/R/R-3.6.0/library", install_github("strengejacke/sjPlot"))

然后更改默认库:

 .libPaths("C:/Program Files/R/R-3.6.0/library")
© www.soinside.com 2019 - 2024. All rights reserved.