Description Usage Arguments Value
setup_sim
takes inputs and generates all needed outputs to be passed
to simrabid
.
1 2 3 4 5 6 7 8 9 10 11 12 | setup_sim(
start_date = "2002-01-01",
apprx_end_date = "2020-01-01",
days_in_step = 7,
rast,
death_rate_annual,
birth_rate_annual,
waning_rate_annual,
block_fun = block_cells,
params = list(start_pop),
by_admin = FALSE
)
|
start_date |
date, the starting date for the simulation in year-month-day format |
apprx_end_date |
date, the approximate end date for the simulation in year-month-day format,
the set-up fun will return the actual end date of the simulation rounded up to the
maximum number of timesteps in the interval based on |
days_in_step |
the number of days to aggregate timesteps by, defaults to 7 ("weekly"), but can be arbitrary number of days |
rast |
raster, from |
death_rate_annual |
annual death rate, either length 1 or length of the admin units |
birth_rate_annual |
annual birth rate, either length 1 or length of the admin units |
waning_rate_annual |
annual waning rate of vaccination immunity, either length 1 or length of the admin units |
block_fun |
a function that designates the indices to track/block/consider
out-of-bounds (see |
params |
additional params to pass, must include start_pop, a numeric
vector of the starting population in each grid cell of |
by_admin |
logical, should mixing be at the admin (or arbitrary) scale? |
a list of objects needed for the simulation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.