Skip to contents

pFinalSizeSwitch1 is the probability that n initial cases lead to an extinguished outbreak of total size j after any number of transmission generations (j includes the n initial cases)

Usage

pFinalSizeSwitch1(n, j, R0, k0, Rc, kc)

Arguments

n

number of initial cases in generation 0

j

total outbreak size (>= n).

R0

mean of negative binomial offspring distribution from generation one

k0

dispersion of negative binomial offspring distribution from generation one

Rc

mean of negative binomial offspring distribution from generation two on

kc

dispersion of negative binomial offspring distribution from generation two on

Examples

pFinalSizeSwitch1(5, 5:20, R0=2, k0=0.1, Rc=0.2, kc=0.1)
#> Warning: numerical expression has 16 elements: only the first used
#> Warning: numerical expression has 16 elements: only the first used
#>  [1] 0.2182179       NaN       NaN       NaN       NaN       NaN       NaN
#>  [8]       NaN       NaN       NaN       NaN       NaN       NaN       NaN
#> [15]       NaN       NaN