Description Usage Arguments Value Author(s) Examples
View source: R/outbreak_setup.R
Set up initial cases for branching process
1 | outbreak_setup(num.initial.cases, incfn, delayfn, k, prop.asym)
|
num.initial.cases |
Integer number of initial cases |
incfn |
function that samples from incubation period Weibull distribution; generated using dist_setup |
delayfn |
function that samples from the onset-to-hospitalisation delay Weibull distribution; generated using dist_setup |
k |
Numeric skew parameter for sampling the serial interval from the incubation period |
prop.asym |
Numeric proportion of cases that are sublinical (between 0 and 1) |
data.table of cases in outbreak so far
Joel Hellewell
1 2 3 4 5 6 7 8 | ## Not run:
# incubation period sampling function
incfn <- dist_setup(dist_shape = 2.322737,dist_scale = 6.492272)
# delay distribution sampling function
delayfn <- dist_setup(delay_shape, delay_scale)
outbreak_setup(num.initial.cases = 5,incfn,delayfn,k=1.95,prop.asym=0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.