Learn R Programming

dyngen (version 0.4.0)

simtime_from_backbone: Determine simulation time from backbone

Description

Determine simulation time from backbone

Usage

simtime_from_backbone(backbone, burn = FALSE)

Arguments

backbone

A valid dyngen backbone object

burn

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

Value

An estimation of the required simulation time

Examples

Run this code
# NOT RUN {
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