Determine simulation time from backbone
simtime_from_backbone(backbone, burn = FALSE)
A valid dyngen backbone object
Whether or not to compute the simtime for only the burn phase
An estimation of the required simulation time
backbone <- backbone_linear()
simtime_from_backbone(backbone)
#> [1] 682.8
model <- initialise_model(
backbone = backbone,
simulation_params = simulation_default(
burn_time = simtime_from_backbone(backbone, burn = TRUE),
total_time = simtime_from_backbone(backbone, burn = FALSE)
)
)