if (FALSE) {
# With pre-existing `sim`, `param` and `init` object (see `netsim`)
# List all attributes that store a time step
time_attrs <- c(
"inf.time",
"stage.time",
"aids.time",
"prep.start.last"
)
# Make a restart point a re-run for 10 more timesteps
x <- make_restart_point(sim, time_attrs, sim_num = 1, keep_steps = 1)
control <- control_msm(
start = x$control$nsteps + 1,
nsteps = x$control$nsteps + 1 + 10
)
sim <- netsim(x, param, init, control)
}
Run the code above in your browser using DataLab