View source: R/check_convergence.R
check_convergence | R Documentation |
Access quick convergence checks from 'TMB' and 'nlminb'.
check_convergence(mod, ret = FALSE, f = "")
mod |
output from |
ret |
T/F, return list? Default = FALSE, just prints to console |
a list with at least the first three of these components:
$convergence
From stats::nlminb
, "0 indicates successful convergence for nlminb"
$maxgr
Max absolute gradient value, from 'max(abs(mod$gr(mod$opt$par)))'
$maxgr_par
Name of parameter with max gradient
$is_sdrep
If TMB::sdreport
was performed
for this model, this indicates whether it performed without error
$na_sdrep
If TMB::sdreport
was performed
without error for this model, this indicates which (if any) components of the
diagonal of the inverted hessian were returned as NA
fit_wham
, fit_tmb
, stats::nlminb
## Not run:
data("input4_SNEMAYT") # load SNEMA yellowtail flounder data and parameter settings
mod = fit_wham(input4_SNEMAYT) # using default values
check_convergence(mod)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.