pFinalSize {branchingprocess} | R Documentation |
Final outbreak size probability
Description
Final outbreak size probability
Usage
pFinalSize(n, j, R, k)
Arguments
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 |
Value
The final size probability
Examples
# 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)
[Package branchingprocess version 0.1.0 Index]