Learn R Programming

spread (version 2019.8.5)

convert_blank_seiiar_with_vax: Convert blank seiiar with vax

Description

Takes a fully susceptible population and proportion of people vaccinated per location code and allocates an appropriate amount of people to recovered. For more information, look at vignette("including_vax","spread").

Usage

convert_blank_seiiar_with_vax(seiiar, vax)

Arguments

seiiar

SEIIAR data.table representing a fully susceptible population

vax

data.table containing proportion of people vaccinated per location code

Examples

Run this code
# NOT RUN {
vax_measles <- fhidata::norway_childhood_vax[
  year==2016 &
  stringr::str_detect(location_code,"^municip") &
  vax=="measles",
  c("location_code","proportion")
]

norway_seiiar_measles_noinfected_2017 <- spread::convert_blank_seiiar_with_vax(
  seiiar = spread::norway_seiiar_noinfected_2017,
  vax = vax_measles
)
# }

Run the code above in your browser using DataLab