Skip to contents

convergence_info() returns every field behind convergence_status(): converged, convergence_status, boundary_params (a data frame with name and kind; kinds are "re_sd", "rho12", "heywood", "temporal"), pd_hessian, max_gradient, optimizer_code and optimizer_message. max_gradient is the Newton step in SE units, max_i |(H^-1 g)_i| / SE_i, which is the quantity the not-converged rule cuts at 1e-3; it is NA when no positive-definite Hessian is stored. See convergence_status() for the rule and its order.

Usage

convergence_info(object)

Arguments

object

A native drmTMB fit.

Value

A named list.

Examples

set.seed(20260916)
dat <- data.frame(y = rnorm(40), x = rnorm(40))
fit <- drmTMB(bf(y ~ x, sigma ~ 1), data = dat)
convergence_info(fit)$convergence_status
#> [1] "converged"