There is a R function (via the nlme package) lmList that contains a list of lm objects with a common model, after partitioning data according to a grouping factor. This has a lot of the useful methods that models typically have, such as predict. Is there an equivalent feature for glm?
I do see glmlist, but unlike lmlist it seems more to be a fancy container, with none of methods such as predict.
I.e. is there the equivalent of the following code for glm?
library(nlme)
fit <- lmList(disp ~ hp | vs, mtcars)
predict(fit,mtcars)