【发布时间】:2021-11-23 11:08:13
【问题描述】:
我想绘制 lme4::lmer 模型的固定效应的估计值。目前, sjPlot::plot_model 输出包括两个我不想要的附加图:SD(观察)和 SD(截距)。如何删除这两个额外的地块?
library(lme4)
data(iris)
lmerMod <- lmer(Sepal.Length ~ Sepal.Width * Petal.Length + (1|Species), data=iris)
library(sjPlot)
plot1 <- plot_model(lmerMod,
type = "est",
show.intercept = TRUE,
title = "Estimates of fixed effects")
基本上,我想要一个看起来像绘制 glm 模型的固定效果时产生的输出,例如:
glmMod <- glm(Sepal.Length ~ Sepal.Width * Petal.Length, data=iris)
plot2 <- plot_model(glmMod,
type = "est",
show.intercept = TRUE,
title = "Estimates of fixed effects")
我相信这是 sjPlot::plot_model 函数在之前绘制 lmer 模型时默认生成的,因为这是我的代码用来生成的。感谢您的帮助!
【问题讨论】: