r0fun {epimdr2} | R Documentation |
Function to calculate R0 from a contact matrix
Description
Function to calculate R0 from a contact matrix
Usage
r0fun(CM, tau, gamma)
Arguments
CM |
an object of class CM |
tau |
= probability of infection across an edge |
gamma |
= probability of removal per time step |
Value
the R0
Examples
cm1=barabasiAlbert(N=200,K=2)
r0fun(cm1, 0.3, 0.1)
[Package epimdr2 version 1.0-9 Index]