convergence: Per-Model Convergence Diagnostics

View source: R/accessors.R

convergenceR Documentation

Per-Model Convergence Diagnostics

Description

Returns the diagnostics recorded for the numerical optimization of every model in the model space: whether it converged, the code returned by optim, the number of restarts and of initial draws, and the largest absolute gradient at the reported optimum.

Usage

convergence(x, ...)

## S3 method for class 'badp_model_space'
convergence(x, ...)

Arguments

x

An object of class badp_model_space.

...

Arguments passed to methods.

Details

Models that failed to converge are retained in the model space rather than dropped, so that they can be inspected. See optim_model_space for what the individual diagnostics mean.

Value

A numeric matrix with one column per model.

See Also

optim_model_space, summary.badp_model_space

Examples


data(full_model_space)
convergence(full_model_space)[, 1:5]



badp documentation built on Sept. 15, 2026, 1:08 a.m.