How to plot multiple glmer models into one single plot?
问题 I have two glmer models with two covariates each that I'm trying to plot into a single figure. MWE : ## generalized linear mixed model library(lattice) cbpp$response <- sample(c(0,1), replace=TRUE, size=nrow(cbpp)) gm1 <- glmer(response ~ size + incidence + (1 | herd), data = cbpp, family = binomial) cbpp$obs <- 1:nrow(cbpp) gm2 <- glmer(response ~ size + incidence + (1 | herd) + (1|obs), family = binomial, data = cbpp) I am trying to plot the predicted values againts each covariate for each