Skip to content

SUMM/Design: consistency in convergence criteria #2825

Open

Description

@josef-pkt

based on PR #2803 GLM uses absolute tolerance on deviance
see comments there for discussion

current behavior

model specific estimators:

  • GLM: atol on deviance
  • RLM is similar and the convergence criterion is on the value of the objective function, but it has an option for choosing it conv='dev'.
    (RLM was largely modeled the same way as GLM)
  • GLSAR uses max rtol for params
  • MixedLM uses max atol for fe params
  • Quantile regression uses max atol for params
  • (GLSHet uses fixed number of iterations, open issue IIRC)

generic optimizers:

  • our newton method: docstring says relative, but code is absolute max atol for params
  • scipy optimizers are mixed according to our docstrings, rtol or tol on gradient, we use defaults, users can change

related aside:
using only relative tolerance causes convergence problem in perfect fit. Our current GLM works fine with it, e.g. in a saturated loglinear model (Poisson or Binomial)
comment lists R, SAS and Stata
https://github.com/JuliaStats/GLM.jl/issues/117#issuecomment-168544306

Activity

  1. josef-pkt commented on Oct 5, 2017

    @josef-pkt
    MemberAuthor

    GLM deviance measure depends on nobs. We don't scale deviance as we scale loglike in the base optimizers.

    I hadn't realized that there is an option in GLM.fit

    in fit_irls
    tol_criterion = kwargs.get('tol_criterion', 'deviance')
    in fit docstring

        tol_criterion : str, optional
                Defaults to ``'deviance'``. Can optionally be ``'params'``.
    
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