r0fun: Function to calculate R0 from a contact matrix

Description Usage Arguments Value Examples

View source: R/rfuncs.R

Description

Function to calculate R0 from a contact matrix

Usage

1
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

1
2
cm1=BarabasiAlbert(N=200,K=2)
r0fun(cm1, 0.3, 0.1)

epimdr documentation built on March 26, 2020, 7:41 p.m.

Related to r0fun in epimdr...