Helper function to update setting-specific contact rate list

update_contact_rate_setting(contact_rate_setting, values_to_update)

Arguments

contact_rate_setting

named list containing setting-specific contact rates (in units of average contacts in the given setting per individual of age i with individuals of age j per day)

values_to_update

named list of values to update in default list of setting-specific contact rates

Value

named list of setting-specific contact rates

Examples

update_contact_rate_setting(mk_contact_rate_setting(), list(school = 0))
#> $household
#> [1] 4.11
#> 
#> $school
#> [1] 0
#> 
#> $work
#> [1] 8.07
#> 
#> $community
#> [1] 2.79
#>