pGenSwitch1 | R Documentation |
Probability that one initial case leads to an outbreak lasting less than g generations of transmission, with offspring distribution parameters switched after generation one.
pGenSwitch1(gMax, R0, k0, Rc, kc)
gMax |
Maximum number of generations |
R0 |
Basic reproduction number: mean of negative binomial offspring distribution from generation one |
k0 |
Dispersion of negative binomial offspring distribution from generation one |
Rc |
Control reproduction number: mean of negative binomial offspring distribution from generation two plus |
kc |
Dispersion of negative binomial offspring distribution from generation two plus |
A vector of probabilities for each number of generations from 1 to gmax
Damon Toth
# Probability of outbreak lasting less than 1,2,3,...,10 generations:
pGenSwitch1(gMax=10, R0=3, k0=0.1, Rc=0.5, kc=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.