powered by
Function to calculate R0 from a contact matrix
r0fun(CM, tau, gamma)
an object of class CM
= probability of infection across an edge
= probability of removal per time step
the R0
# NOT RUN { cm1=BarabasiAlbert(N=200,K=2) r0fun(cm1, 0.3, 0.1) # }
Run the code above in your browser using DataLab