pSizeAtGen {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
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
Usage
pSizeAtGen(g, n, j, R, k)
Arguments
g |
Number of generations of transmission |
n |
Number of initial cases |
j |
Total size of outbreak after generation g |
R |
Reproduction number: mean of negative binomial offspring distribution |
k |
Dispersion parameter of negative binomial offspring distribution |
Value
The probability of the given outbreak size at the given 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
pSizeAtGen(g=3,n=10,j=30,R=2,k=0.5)
[Package branchingprocess version 0.1.0 Index]