Skip to content

BUG: convergence failure with llnull in Poisson #3476

Closed

Description

@josef-pkt

see mailing list Poisson example
We can work around convergence failure with default settings in the main model, but we cannot influence the fit of the null model if that doesn't converge.

https://groups.google.com/d/msg/pystatsmodels/FAnjBe_RynE/e8hWinbZCQAJ

We can compute the constant directly from the data without optimization in cases like Poisson, and I guess most other GLM type models, maybe not when offset and exposure are used. And I'm not sure about noncanonical links (which might need a detour)

Activity

  1. added this to the 0.9 milestone on Feb 11, 2017
  2. josef-pkt commented on Mar 3, 2017

    @josef-pkt
    MemberAuthor

    Note we can have an explicit solution for the parameter constant only model.

    something like this

    const = np.exp(params) = endog.mean() / np.exp(offset + exposure)
    params = [np.log(const]
    

    AFAIR, we still don't have a function to compute the negative binomial dispersion function/parameters from the residuals.

  3. josef-pkt commented on Sep 22, 2017

    @josef-pkt
    MemberAuthor

    fixed in #3921 I used the mailing list example as unit test case

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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions