Access quick convergence checks from `TMB` and `nlminb`. Function modified from wham::check_convergence.
Arguments
- mod
output from
fit_rema- ret
T/F, return list? Default = FALSE, just prints to console
Value
a list with at least the first three of these components:
$convergenceFrom
stats::nlminb, "0 indicates successful convergence for nlminb"$maxgrMax absolute gradient value, from `max(abs(mod$gr(mod$opt$par)))`
$maxgr_parName of parameter with max gradient
$is_sdrepIf
TMB::sdreportwas performed for this model, this indicates whether it performed without error$na_sdrepIf
TMB::sdreportwas performed without error for this model, this indicates which (if any) components of the diagonal of the inverted hessian were returned as NA
