Skip to contents

Probability that one initial case leads to an outbreak lasting less than g generations of transmission.

Usage

pGen(gMax, R, k)

Arguments

gMax

Maximum number of generations.

R

Reproduction number.

k

Dispersion parameter.

Value

A vector of probabilities for each number of generations from 1 to gmax

Author

Damon Toth

Examples

# Probability of outbreak lasting less than 1,2,3,...,10 generations:
pGen(gMax=10, R=0.9, k=0.1)
#>  [1] 0.7943282 0.9005329 0.9380682 0.9566661 0.9676055 0.9747402 0.9797236
#>  [8] 0.9833777 0.9861552 0.9883257