if (FALSE) {
# The "bobyqa" optimizer is required for this particular model to converge
model_lme4 <- lmer(satisfaction ~ 1 + salary_c + control_c + salary_m + control_m +
s_t_ratio + (1 + salary_c + control_c| schoolID), data = teachsat, REML =
TRUE, control = lmerControl(optimizer = "bobyqa"))
r2mlm_ci(model = model_lme4,
nsim = 100,
boottype = c("residual"),
confinttype = c("perc"),
level = 0.95,
progress = TRUE)
}
Run the code above in your browser using DataLab