For simple glm
objects, I can use predict(fit, type = "terms")
to retrieve a matrix with fitted values for each term.
What is the equivalent for lmer
resp. glmer
fitted models? As far as I can see, the predict.merMod
function does not support type = terms
.
I do not think there is one. Though, you can easily make one as follows
Extending the above to also include standard errors should be straightforward as far as I gather.