scenario_sim: Run a specified number of simulations with identical...

Description Usage Arguments Author(s) Examples

View source: R/scenario_sim.R

Description

Run a specified number of simulations with identical parameters

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
scenario_sim(
  n.sim = NULL,
  prop.ascertain = NULL,
  cap_max_days = NULL,
  cap_cases = NULL,
  r0isolated = NULL,
  r0community = NULL,
  disp.iso = NULL,
  disp.com = NULL,
  k = NULL,
  delay_shape = NULL,
  delay_scale = NULL,
  num.initial.cases = NULL,
  prop.asym = NULL,
  quarantine = NULL
)

Arguments

n.sim

number of simulations to run

prop.ascertain

Probability that cases are ascertained by contact tracing

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

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.cases

Initial number of cases in each initial cluster

num.initial.clusters

Number of initial clusters

Author(s)

Joel Hellewell

Examples

 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)

covid19risk/impact-sim documentation built on April 16, 2021, 2:15 a.m.