View source: R/new_simulation.R
spim_beta_mult_schools | R Documentation |
Calculate multiplicative beta scaling factor for schools. We assume here that schools has come from spim_simulate_control but we may add validation later.
spim_beta_mult_schools(dates, schedule, modifier, region)
dates |
A sircovid date, fractional dates (e.g. 100.25) are allowed. |
schedule |
A data.frame of school open/closed
information. Required columns are |
modifier |
The amount to decrease beta by when schools are closed for holidays etc. A value of 0.15 is a 15% reduction in contacts, or a multiplicative beta of 0.85 |
region |
The region to subset from the schedule. |
A vector the same length as dates
with the scaling
factor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.