pSizeAtGen | 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
pSizeAtGen(g, n, j, R, k)
g |
Number of generations of transmission |
n |
Number of initial cases |
j |
Total size of outbreak after generation g |
R |
Reproduction number: mean of negative binomial offspring distribution |
k |
Dispersion parameter of negative binomial offspring distribution |
The probability of the given outbreak size at the given 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
pSizeAtGen(g=3,n=10,j=30,R=2,k=0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.