Resolves missing parameters, priors, map, and bounds from package defaults,
builds the transient RTMB objective, and caches it for the current session.
Normal workflows can omit this call because sbt_optimise() and
sbt_mcmc() build automatically.
Arguments
- fit
An
sbt_fit()object.- silent
Passed to
RTMB::MakeADFun().
Value
The configured, built sbt_fit. Resolved parameters, priors, map,
bounds, and active parameter names are retained in the portable fit; the
RTMB objective is cached only for the current R session.
See also
Other fit workflow:
check_mcmc(),
check_mle(),
sbt_add_bounds(),
sbt_add_map(),
sbt_add_msy(),
sbt_add_parameters(),
sbt_add_priors(),
sbt_example_fit(),
sbt_fit(),
sbt_fit_compatibility(),
sbt_fit_io,
sbt_fit_rebuild(),
sbt_fit_report(),
sbt_fit_validate(),
sbt_fit_validation(),
sbt_mcmc(),
sbt_obj(),
sbt_optimise()
Examples
if (FALSE) { # \dontrun{
fit <- sbt_fit(sbt_example_data())
fit <- sbt_build_object(fit)
length(sbt_obj(fit)$par)
} # }
