Skip to contents

Probability of y total transmission directly from x independent infected individuals

Usage

pNextGen(x, y, R, k)

Arguments

x

number of infected individuals in generation n

y

number of total transmissions in generation n+1

R

mean of negative binomial offspring distribution

k

dispersion of negative binomial offspring distribution

Examples

# With 5 individuals in this generation, what is the probability of
# 0 to 15 transmissions in the next generation?
pNextGen(5, 0:15, R=0.2, k=0.1)
#>  [1] 0.5773502692 0.1924500897 0.0962250449 0.0534583583 0.0311840423
#>  [6] 0.0187104254 0.0114341488 0.0070782826 0.0044239266 0.0027854353
#> [11] 0.0017641090 0.0011226148 0.0007172261 0.0004597603 0.0002955602
#> [16] 0.0001904721