pGen | R Documentation |
Probability that one initial case leads to an outbreak lasting less than g generations of transmission.
pGen(gMax, R, k)
gMax |
Maximum number of generations. |
R |
Reproduction number. |
k |
Dispersion parameter. |
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:
pGen(gMax=10, R=0.9, k=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.