pSizeAtGenSwitch1 {branchingprocess} | R Documentation |
Probability that n initial cases lead to an outbreak that lasts at least g generations of transmission AND has exactly j total cases after generation g, with offspring distribution parameters switched after generation one
Description
Probability that n initial cases lead to an outbreak that lasts at least g generations of transmission AND has exactly j total cases after generation g, with offspring distribution parameters switched after generation one
Usage
pSizeAtGenSwitch1(g, n, j, R0, k0, Rc, kc)
Arguments
g |
Number of generations of transmission |
n |
Number of initial cases |
j |
Total size of outbreak after generation g |
R0 |
Basic reproduction number: mean of negative binomial offspring distribution from generation one |
k0 |
Dispersion parameter of negative binomial offspring distribution from generation one |
Rc |
Control reproduction number: mean of negative binomial offspring distribution from generation two plus |
kc |
Dispersion parameter of negative binomial offspring distribution from generation two plus |
Value
The probability of the given outbreak size at the given transmission generation
Author(s)
Damon Toth
Examples
#Probability that 10 initial cases leads to an outbreak lasting at least
# 3 transmission generations and is of exact size 30 after 3 generations
pSizeAtGenSwitch1(g=3,n=10,j=30,R0=2,k0=0.5,Rc=0.5,kc=1)