Run a model for a specified number of ticks, where each tick is a day.
run_model(model, ticks, progress = FALSE, check_term = TRUE)
model | A model object returned from |
---|---|
ticks | Number of days to simulate. |
progress | Print progress messages for every tick
If it's |
check_term | Check populations in compartments and terminate early if there are no agents in either E or I (so no further infections can happen). |
A named list with the resulting model after the ticks, and a tibble with the counts of agents in "S", "E", "I", and "R" status.
# ADD_EXAMPLES_HERE