Skip to contents

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.

Usage

sbt_example_fit(rebuild = TRUE)

Arguments

rebuild

Passed to sbt_fit_read(). Use FALSE when 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.

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"
#>