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

"show.std" function removes p value formatting in tab_plot (sjPlot)

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

step1 <- lm(data=iris, Sepal.Length ~ Petal.Length + Petal.Width)

我可以使用 sjPlot 制作一个 table 来表达它:

tab_model(step1)

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

tab_model(step1,
          show.std = T)

有没有办法阻止这种情况发生?

丹尼尔提供了解决方案。 这是 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")