
Attach an existing optimization result to a staged SBT fit
Source:R/fit-lifecycle.R
sbt_add_optimisation.RdThis is intended for a specialized external optimizer whose result should
enter the same portable fitted-model lifecycle as sbt_optimise(). Normal
workflows should use sbt_optimise() directly.
Arguments
- fit
An
sbt_fit()object.- opt
Optimizer result containing named finite
par, a finiteobjective, and an integer-likeconvergencecode.- estimability
Optional result from
check_estimability().- diagnostics
Optional named list of optimizer diagnostics.
- optimizer
Optional non-empty optimizer description. The description already stored in
fitis used when omitted.- check
Run
check_mle()after attachment.- check_args
Named arguments passed to
check_mle().