Makes sense. I think that this is a general technique that should be available to other models, e.g. glm.