NetworkSIR {epimdr} | R Documentation |
Function to simulate a stochastic (discrete time) Reed-Frost SIR model on a social network
NetworkSIR(CM, tau, gamma)
CM |
a contact matrix |
tau |
the transmission probabiliy |
gamma |
the recovery probabiliy |
An object of class netSIR with infectious status for each node through time
cm1=BarabasiAlbert(N=200,K=2) sim1=NetworkSIR(cm1,.3,0.1) summary(sim1) ## Not run: plot(sim1)