sirNetmod | R Documentation |
Function to simulate a stochastic (discrete time) Reed-Frost SIR model on a social network
sirNetmod(CM, tau, gamma)
CM |
a contact matrix |
tau |
the transmission probability |
gamma |
the recovery probability |
An object of class netSir with infectious status for each node through time
cm1=barabasiAlbert(N=200,K=2) sim1=sirNetmod(cm1,.3,0.1) summary(sim1) ## Not run: plot(sim1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.