You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SUMM/Design: consistency in convergence criteria #2825
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
josef-pkt commentedon Oct 5, 2017
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