Skip to contents

Draws compositions, abundance indices, and tagging and close-kin outcomes from predictions made by a simulated SBT operating model. Catch histories and observation designs are simulated inputs stored with the operating-model recipe. With seed = NULL, the stored random-number state is used to reproduce exactly the data returned by sbt_example_data(). Supply a seed to generate a different observation realisation from the same operating model. The caller's random-number state is preserved.

Usage

sbt_example_simulate(seed = NULL)

Arguments

seed

A single numeric random seed. The default, NULL, reproduces the bundled observation realisation.

Value

A list with two components: data, the complete processed model-data list, and truth, the generating model's TRO trajectory and operating-model metadata.

See also

Other simulated example: sbt_example_data(), sbt_example_fit()

Examples

reproduced <- sbt_example_simulate()
identical(reproduced$data, sbt_example_data())
#> [1] FALSE

alternative <- sbt_example_simulate(seed = 2026)
identical(alternative$data$cpue_obs, reproduced$data$cpue_obs)
#> [1] FALSE