Plot model fit for discrete variable, from average model
问题 I have a set of linear mixed models, and have created an average model. I'd like to plot the model fits for two levels of a factor, included in the average model. A simple example: library(lme4) library(MuMIn) mtcars2 <- mtcars mtcars2$vs <- factor(mtcars2$vs) gl <- lmer(mpg ~ am + disp + hp + qsec + (1 | cyl), mtcars2, REML = FALSE, na.action = 'na.fail') d <- dredge(gl) av <- model.avg(d, subset = cumsum(weight) <= 0.95) summary(av) Call: model.avg(object = d, subset = cumsum(weight) <= 0