plan_vaccines: Plan vaccines based on gacc information

Description Usage Arguments Value Examples

View source: R/vaccine_fxns.R

Description

Uses the approx function to calculate the number of agents that need to be vaccinated during each time step rounded to the nearest whole number.

Usage

1

Arguments

table

Contingency table created by "table" containing frequency of either gaccs or roles

x

Numeric vector, time steps

y

Numeric vector, values from 0-1 specifying proportion of each gacc to vaccinate at times corresponding to x

Value

Vaccine plan where row = time, colnames = gacc, values = number of agents to vaccinate

Examples

1
2
3
4
5
6
7
8
## Not run: 
agent_roles <- find_role_types(mod_id_2017)
role_table <- table(ifelse(grepl("Overhead", agent_roles), "overhead", "ground"))
vax_plan <- plan_vaccines(role_table,
                          x = c(1, 154, 354),
                          y = c(0.25, 0.50, 0.7))

## End(Not run)

jakedilliott/covidfireMASS documentation built on Dec. 20, 2021, 8:59 p.m.