Represent vaccine investment scenarios for DAEDALUS
Source:R/class_vaccination.R
class_vaccination.Rd
Helper functions to create and work with S3 class
<daedalus_vaccination>
objects for use with daedalus()
.
These objects store vaccination parameters for reuse and have methods for
easy parameter access and editing, as well as processing raw vaccination
characteristics for the DAEDALUS model.
Usage
daedalus_vaccination(
name,
country,
start_time = NULL,
rate = NULL,
uptake_limit = NULL,
efficacy = 50,
waning_period = 180
)
is_daedalus_vaccination(x)
# S3 method for class 'daedalus_vaccination'
print(x, ...)
Arguments
- name
A vaccination investment scenario name from among daedalus.data::vaccination_scenario_names. Selecting an epidemic automatically pulls in vaccination parameters associated with the epidemic; these are stored as packaged data in
daedalus.data::vaccination_scenario_data
.- country
A
<daedalus_country>
object or a 2- or 3-character string that can be coerced to a<daedalus_country>
(e.g."GBR"
for the United Kingdom). Used to determine when vaccination should end.- start_time
The number of days after the start of the epidemic that vaccination begins. Must be a single number. Defaults to
NULL
and the start time is taken from the vaccination scenarios specified byname
. Passed to thetime_on
argument innew_daedalus_response()
via the class constructornew_daedalus_vaccination()
.- rate
A single number for the percentage of the total population that can be vaccinated each day. This is converted into a proportion automatically within
daedalus()
.- uptake_limit
A single number giving the upper limit for the percentage of the population that can be vaccinated. When this limit is reached, vaccination ends. Passed to the
value_state_off
argument innew_daedalus_response()
via the class constructornew_daedalus_vaccination()
.- efficacy
A single number in the range
[0, 100]
giving the efficacy of vaccination in preventing infection. A value of 0 indicates that vaccinated individuals are as susceptible to infection as unvaccinated ones, while 100 would indicate completely non-leaky vaccination that completely protects against infection.- waning_period
A single number representing the number of days over which the average individual wanes out of the vaccinated stratum to the unvaccinated stratum. Only individuals in the susceptible and recovered compartments can wane out of being vaccinated.
- x
An object to be tested or printed as a
<daedalus_vaccination>
.- ...
For
daedalus_vaccination()
, other parameters passed tonew_daedalus_response()
. For theprint
method, other parameters passed toprint()
.
Details
Note that vaccination once ended by reaching the uptake_limit
does not
restart once individuals wane out of the vaccinated compartment.
Examples
# for no advance vaccine investment in the UK
daedalus_vaccination("none", "GBR")
#> <daedalus_vaccination/daedalus_response>
#> Vaccine investment scenario: none
#> • Start time (days): 365
#> • Rate (% per day): 0.143
#> • Uptake limit (%): 40
#> • Efficacy (%): 50
#> • Waning period (mean, days): 180
# modifying parameters during initialisation
# set daily vaccination rate to 1.5% of population
daedalus_vaccination("low", "GBR", rate = 1.5)
#> <daedalus_vaccination/daedalus_response>
#> Vaccine investment scenario: low
#> • Start time (days): 300
#> • Rate (% per day): 1.5
#> • Uptake limit (%): 50
#> • Efficacy (%): 50
#> • Waning period (mean, days): 180