Returns the full fitted example used by the model article. The fit contains
the same simulated data returned by sbt_example_data() and has no MCMC
posterior attached.
Arguments
- rebuild
Passed to
sbt_fit_read(). UseFALSEwhen only the portable fit contents are needed.
Value
An optimised sbt_fit() for the bundled simulated example, including
its processed data, resolved configuration, accepted MLE, diagnostics, and
validation record. It does not contain posterior draws.
See also
Other simulated example:
sbt_example_data(),
sbt_example_simulate()
Other fit workflow:
check_mcmc(),
check_mle(),
sbt_add_bounds(),
sbt_add_map(),
sbt_add_msy(),
sbt_add_parameters(),
sbt_add_priors(),
sbt_build_object(),
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
fit <- sbt_example_fit(rebuild = FALSE)
#> Warning: Dependency versions differ: RTMBdist, TMB
fit
#> <sbt_fit>
#> Model: sbt_model (schema 2)
#> sbt version: 3.0.0
#> Stage: optimised
#> Parameters: 1559 active
#> Objective: 7593.445
#> Convergence: 0
#> Estimability: All 1,559 active fixed-effect parameters are estimable.
#> MLE check: passed
#> MCMC: not stored
#> MSY: 0 stored calculations
#> Next: sbt_mcmc()
#> Created: 2026-08-21 02:09:39 UTC
sbt_fit_validation(fit, scope = "mle", require_pass = TRUE)
#> $contract
#> [1] "sbt_fit_validation_record_v1"
#>
#> $scope
#> [1] "mle"
#>
#> $identity
#> $identity$validator
#> [1] "sbt_mle_validation_v1"
#>
#> $identity$fit_id
#> [1] "sbt-fit-f277f1ee1f7aec6e9f9a9ee8d65198f5"
#>
#> $identity$scientific_contract_id
#> [1] "f44a18607b147acd727fb4c4f2ce5b78"
#>
#> $identity$posterior_id
#> NULL
#>
#> $identity$sampler_payload_id
#> NULL
#>
#> $identity$mle_validation_id
#> NULL
#>
#> $identity$settings
#> $identity$settings$gradient_tolerance
#> [1] 0.01
#>
#>
#> $identity$settings_id
#> [1] "a2a7d0e763bd97d0a2acbf3a42d57840"
#>
#>
#> $diagnostics_id
#> [1] "b88ef3eb8a23112aa6e969e987f679a9"
#>
#> $passes
#> [1] TRUE
#>
#> $completed_at
#> [1] "2026-08-21 02:12:10 UTC"
#>
#> $id
#> [1] "9f6cadcf620c1cb9a968e5a4fd10d4cd"
#>
