Run a model for a specified number of ticks, where each tick is a day.

run_model(model, ticks, progress = FALSE, check_term = TRUE)

Arguments

model

A model object returned from setup_model().

ticks

Number of days to simulate.

progress

Print progress messages for every tick If it's TRUE or 1, a message is printed. If it's greater than 1 additional messages from tick() are printed.

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

Value

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.

Examples

# ADD_EXAMPLES_HERE