Skip to content

FAQ-D/SUMM: model and results methods, required and usage #5500

Open

Description

@josef-pkt

What methods are required?
What are the methods used for?

We need additional methods in models and results classes that are required by some extra functionality. The extra generic functionality becomes available if the additional methods are available.

This issue is a companion for #1970 which has required attributes.

examples for usage:

  • margins requires derivatives
  • sandwiches require score_obs
  • score_test requires score_factor, hessian_factor for shortcut for variable addition test
  • MixedMixin requires loglike_obs
  • outlier-influence: requires some derivatives, hat_matrix_diag, ...
  • two-part models like ZeroInflated count models use loglikeobs
  • ...

GenericLikelihoodModel has loglikeobs used to compute numerical derivative for score_obs. I did not see any other usage in a quick look.

loglike is not directly needed for estimating equation optimizers, e.g. ls in OLS/WLS, irls or our newton. (e.g. tweedie does not yet have loglike)

Activity

  1. josef-pkt commented on Dec 11, 2020

    @josef-pkt
    MemberAuthor

    MLEInfluence for Poisson requires

    • get_prediction for se_mean in d_fittedvalues_scaled
    • _deriv_score_obs_dendog derivative of score_obs w.r.t. endog
    • _deriv_mean_dparams Derivative of the expected endog with respect to the parameters, I'm adding it to CountModel

    available methods in CountModel, added for margins, AFAIR

    • _derivative_predict docstring is not clear what it is, describes usage, looks like derivative of predict w.r.t. params
      same as _deriv_mean_dparams except for elasticities option ?
    • _derivative_exog seems to be derivative of mean or predict w.r.t. exog
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