convergence_status() returns a short character label for programmatic
workflows. A fit is "converged" only at an interior optimum with usable
standard errors. Statuses are tested in this order and the first match
wins; every non-converged status is a warning, never an error:
Usage
convergence_status(object, ...)
# Default S3 method
convergence_status(object, ...)
# S3 method for class 'drmTMB'
convergence_status(object, ...)
# S3 method for class 'drmTMB_julia'
convergence_status(object, ...)Details
"not_converged"The optimizer did not finish, the log-likelihood is not finite, or the Newton step in SE units from the stored gradient,
max_i |(H^-1 g)_i| / SE_i, exceeds 1e-3."boundary"The optimizer finished but a random-effect SD is near zero, a residual correlation is near +/-1, a temporal parameter is at its limit, or the residual SD has collapsed (the Heywood case). This is tested before the Hessian, so a boundary fit never reads
"degenerate". Random-effect SDs on the response scale are compared with the response SD, so the cut-off does not depend on the units ofy."degenerate"The Hessian is singular, a standard error is non-finite or inflated, the fixed-effect design is aliased, or the likelihood has no finite maximiser (separation, Poisson / NB2 rays, unbounded location-scale). For a prior fit this also includes missing gradient or covariance information needed for the Newton-step check.
is_converged() and converged() are TRUE only for "converged".
Boundary fits are valid estimates: summaries that compare engines or
recover variances should filter on the status rather than drop them.
convergence_info() returns the full set of fields, including
boundary_params (name and kind). Numeric predicates are shared with
DRModels.jl (docs/design/278-twin-convergence-status.md).
For prior fits, the gradient and covariance describe the penalized
objective. Unpenalized curvature is reported separately.