Learn R Programming

dyngen (version 1.0.5)

simtime_from_backbone: Determine simulation time from backbone

Description

Determine simulation time from backbone

Usage

simtime_from_backbone(backbone, burn = FALSE)

Value

An estimation of the required simulation time

Arguments

backbone

A valid dyngen backbone object

burn

Whether or not to compute the simtime for only the burn phase

Examples

Run this code
backbone <- backbone_linear()

simtime_from_backbone(backbone)

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)
  )
)

Run the code above in your browser using DataLab