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)
A sircovid date, fractional dates (e.g. 100.25) are allowed.
A data.frame of school open/closed
information. Required columns are region
, date
and
schools
; really this should have been sorted out by
spim_simulate_control
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
The region to subset from the schedule.
A vector the same length as dates
with the scaling
factor.