View source: R/pSizeAtGenSwitch1.R
pSizeAtGenSwitch1 | R Documentation |
Probability that n initial cases lead to an outbreak that lasts at least g generations of transmission AND has exactly j total cases after generation g, with offspring distribution parameters switched after generation one
pSizeAtGenSwitch1(g, n, j, R0, k0, Rc, kc)
g |
Number of generations of transmission |
n |
Number of initial cases |
j |
Total size of outbreak after generation g |
R0 |
Basic reproduction number: mean of negative binomial offspring distribution from generation one |
k0 |
Dispersion parameter of negative binomial offspring distribution from generation one |
Rc |
Control reproduction number: mean of negative binomial offspring distribution from generation two plus |
kc |
Dispersion parameter of negative binomial offspring distribution from generation two plus |
The probability of the given outbreak size at the given transmission generation
Damon Toth
#Probability that 10 initial cases leads to an outbreak lasting at least
# 3 transmission generations and is of exact size 30 after 3 generations
pSizeAtGenSwitch1(g=3,n=10,j=30,R0=2,k0=0.5,Rc=0.5,kc=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.