Generate_Dataset
Generate_Dataset.Rd
Generate annual serological and/or case/death data
Usage
Generate_Dataset(
input_data = list(),
FOI_values = c(),
R0_values = c(),
sero_template = NULL,
case_template = NULL,
vaccine_efficacy = 1,
p_severe_inf = 0.12,
p_death_severe_inf = 0.39,
p_rep_severe = 1,
p_rep_death = 1,
mode_start = 1,
start_SEIRV = NULL,
dt = 1,
n_reps = 1,
deterministic = FALSE,
mode_parallel = FALSE,
cluster = NULL,
output_frame = FALSE
)
Arguments
- input_data
List of population and vaccination data for multiple regions in standard format [TBA]
- FOI_values
Vector of values of the force of infection due to spillover from sylvatic reservoir
- R0_values
Vector of values of the basic reproduction number for human-human transmission
- sero_template
Seroprevalence data template - data frame with region, year, minimum/maximum age, vc_factor [TBA] and number of samples
- case_template
Annual reported case/death data template - data frame with region and year
- vaccine_efficacy
Fractional vaccine efficacy
- p_severe_inf
Probability of an infection being severe
- p_death_severe_inf
Probability of a severe infection resulting in death
- p_rep_severe
Probability of reporting of a severe but non-fatal infection
- p_rep_death
Probability of reporting of a fatal infection
- mode_start
Flag indicating how to set initial population immunity level in addition to vaccination
If mode_start=0, only vaccinated individuals
If mode_start=1, shift some non-vaccinated individuals into recovered to give herd immunity (uniform by age, R0 based only)
If mode_start=2, use SEIRV input in list from previous run(s)
If mode_start=3, shift some non-vaccinated individuals into recovered to give herd immunity (stratified by age)- start_SEIRV
SEIRV data from end of a previous run to use as input (list of datasets, one per region)
- dt
Time increment in days to use in model (should be either 1.0, 2.5 or 5.0 days)
- n_reps
number of stochastic repetitions
- deterministic
TRUE/FALSE - set model to run in deterministic mode if TRUE
- mode_parallel
TRUE/FALSE - set model to run in parallel using cluster if TRUE
- cluster
Cluster of threads to use if mode_parallel=TRUE
- output_frame
TRUE/FALSE - indicate whether to output a complete data frame of results in template format (if TRUE) or calculated values only (if FALSE) '