Skip to content

ENH: add get_prediction for RLM #8304

Open

Description

@josef-pkt

there is no get_prediction for RLM yet
https://stats.stackexchange.com/questions/578398/getting-confidence-interval-for-prediction-from-statsmodel-robust-linear-model

given that prediction is a linear function we can use the standard method for the confidence interval for predicted mean, conditional expectation.

Not clear whether we want to assume normality to get a prediction interval (for new endog) as in OLS.

Activity

  1. williamjshipman commented on Dec 11, 2022

    @williamjshipman

    I'm interested in this functionality too. If you can point me in the direction of what method to implement, I'd be happy to give it a shot and submit a pull request.

  2. josef-pkt commented on Dec 11, 2022

    @josef-pkt
    MemberAuthor

    The main work here is checking what other packages or articles/textbooks are doing and writing unit tests.

    We have several get_prediction functions and classes that can be reused, most likely something like get_prediction in OLS.

    In cases like this it's often a few hours writing the code, and several days getting the unit tests and deciding on api or methods.

    I have not looked yet at what R, Stata or SAS are doing for their RLM equivalent, so I cannot tell yet what needs to be done.

  3. added this to the 0.15 milestone on Dec 11, 2022
  4. williamjshipman commented on Dec 12, 2022

    @williamjshipman

    Thanks for the links here and in the linked issues.

  5. josef-pkt commented on Apr 15, 2023

    @josef-pkt
    MemberAuthor

    Warning: robust norms allow for complex evaluation (mostly?) however the np.abs usage makes complex step derivatives incorrect.
    #8801 (comment)

    i.e. inheriting usage in nonlinear deltacov _wald_nonlinear will likely be wrong.
    (trying out cs derivatives will or might not raise, but return incorrect derivatives instead)

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