pGen: Probability that one initial case leads to an outbreak...

View source: R/pGen.R

pGenR Documentation

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

Description

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(s)

Damon Toth

Examples

# Probability of outbreak lasting less than 1,2,3,...,10 generations:
pGen(gMax=10, R=0.9, k=0.1)

branchingprocess documentation built on June 8, 2025, 11:35 a.m.