Skip to content

GenericLikelihoodModel.initialize sets self.score to approx_fprime #4453

Closed

Description

@jbrockmendel

... I don't think that's going to work.

Activity

  1. jbrockmendel commented on Apr 9, 2018

    @jbrockmendel
    ContributorAuthor

    Also, sure would be nice if fixed_paramsmask was set in a predictable way.

  2. josef-pkt commented on Apr 9, 2018

    @josef-pkt
    Member

    needs review

    E.g. I haven't looked atfixed_paramsmask in many years
    AFAIK, it didn't get implemented much outside of GenericLikelihoodModels, but it has a unit tested example use case
    https://github.com/statsmodels/statsmodels/blob/master/statsmodels/miscmodels/tmodel.py#L59

    (equality constraints for nonlinear optimization are another medium/long term wishlist item. fit_constrained only allows constraints on the parameters associated with exog.)

  3. jbrockmendel commented on Apr 9, 2018

    @jbrockmendel
    ContributorAuthor

    GenericLikelihoodModel and the accompanying Results subclass are a mess. It would be really nice to get it into better shape because

    a) I would sleep better at night knowing that base.model was uniformly in good condition
    b) you mentioned there being an API for Generic, and it would be great if that were made consistent and usable.

  4. josef-pkt commented on Apr 9, 2018

    @josef-pkt
    Member

    base.model was uniformly in good condition

    GenericLikelihoodModel is intentionally the "dirty" cousin of LikelihoodModel. It is supposed to have a default for everything except loglike, while the cleaner LikelihoodModel assumes that the subclasses provide all the missing pieces.

    This does not mean that it has to be very dirty, and it could get another round.
    Another issue that is open is that some of the GenericLM things can be moved to LM.

    (e.g. I also just found that df_resid, df_model defautls don't work in a simple scipy.stats.distribution wrapper, on mailing list.)

  5. added 2 commits that reference this issue on Sep 6, 2018
    e64a52f
    9ec74cc
  6. added a commit that references this issue on Sep 13, 2018
    513eb36
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions