
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")
.
convert_blank_seiiar_with_vax(seiiar, vax)
SEIIAR data.table representing a fully susceptible population
data.table containing proportion of people vaccinated per location 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