pFinalSize | R Documentation |
Final outbreak size probability
pFinalSize(n, j, R, k)
n |
Number of initial cases in generation 0 |
j |
Total outbreak size (>= n). |
R |
Mean of negative binomial offspring distribution |
k |
Dispersion of negative binomial offspring distribution |
The final size probability
# With 5 initial individuals and negative binomial offspring distribution with mean R=0.2
# and dispersion k=0.1, gives the probability of outbreak extinction with a total number
# final outbreak size of exactly 5 to 20 individuals (including the initial 5):
pFinalSize(5, 5:20, R=0.2, k=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.