Hello,
Trying to make ggpredict work with an average model created with model.avg, but I get the error
"Error: $ operator is invalid for atomic vectors".
If you try the code example bellow you should get the same error. The average model works with the predict function, which is what ggpredict uses. But for some reason unknown to me I can't make it work with ggpredict...
library(MuMIn)
library(ggeffects)
fm1 <- lm(y ~ X1 + X2 + X3 + X4, data = Cement, na.action = na.fail)
ms1 <- dredge(fm1)
confset.95p <- get.models(ms1, subset = cumsum(weight) <= .95)
avgm <- model.avg(confset.95p)
ggp = ggpredict(avgm, terms = "X1")