【发布时间】:2023-03-31 16:17:01
【问题描述】:
我正在使用来自 lme4 的 mice 包和 lmer 进行分析。但是,pool.r.squared() 不会在此输出上工作。我正在寻找有关如何将调整后的 R 平方的计算包含在以下工作流程中的建议。
require(lme4, mice)
imp <- mice(nhanes)
imp2 <- mice::complete(imp, "all") # This step is necessary in my analyses to include other variables/covariates following the multiple imputation
fit <- lapply(imp2, lme4::lmer,
formula = bmi ~ (1|age) + hyp + chl,
REML = T)
est <- pool(fit)
summary(est)
【问题讨论】: