Skip to content

ENH: API: results method residuals as get_resid with options #7919

Open

Description

@josef-pkt

We can add many more residuals in different models than the basic response residuals or GLM residuals.

Similar to information criteria: we stopped adding attributes and added method, so we can have options when computing them.

This would define a public API, so users don't have to work with model methods directly, e.g. score_obs or score_factor.
Stata has some of those in predict.

Out of sample might be nice, but doesn't fit in the current structure. We would need endog additional to exog and other predict keywords and the methods or functions to accept out of sample data.
(e.g. we don't have out of sample loglike)
That would require much larger changes than just adding a residuals method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions