Description Usage Arguments Author(s) Examples
Run a specified number of simulations with identical parameters
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | scenario_sim(
n.sim = NULL,
save.case_data = F,
num.initial.cases = NULL,
cap_gen = NULL,
cap_max_days = NULL,
cap_cases = NULL,
r0isolated = NULL,
r0community = NULL,
disp.iso = NULL,
disp.com = NULL,
prop.asym = NULL,
relR.asym = NULL,
prop.ascertain = NULL,
prop.presym = NULL,
si_omega = NULL,
incu_shape = NULL,
incu_scale = NULL,
delay_shape = NULL,
delay_scale = NULL,
delay_off = 0,
detect_sen = NULL,
quarant.days = NULL,
quarant.retro.days = NULL
)
|
n.sim |
number of simulations to run |
num.initial.cases |
Initial number of cases in each initial cluster |
cap_max_days |
Maximum number of days to run process for |
cap_cases |
Maximum number of cases to run process for |
r0isolated |
basic reproduction number for isolated cases |
r0community |
basic reproduction number for non-isolated cases |
disp.iso |
dispersion parameter for negative binomial distribution for isolated cases |
disp.com |
dispersion parameter for negative binomial distribution for non-isolated cases |
prop.ascertain |
Probability that cases are ascertained by contact tracing |
delay_shape |
shape of distribution for delay between symptom onset and isolation |
delay_scale |
scale of distribution for delay between symptom onset and isolation |
num.initial.clusters |
Number of initial clusters |
Joel Hellewell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
res <- scenario_sim(n.sim = 5,
num.initial.cases = 5,
cap_max_days = 365,
cap_cases = 2000,
r0isolated = 0,
r0community = 2.5,
disp.iso = 1,
disp.com = 0.16,
k = 0.7,
delay_shape = 2.5,
delay_scale = 5,
prop.asym = 0,
prop.ascertain = 0)
#'
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.