sirNetmod {epimdr2}R Documentation

Function to simulate an epidemic on a network

Description

Function to simulate a stochastic (discrete time) Reed-Frost SIR model on a social network

Usage

sirNetmod(CM, tau, gamma)

Arguments

CM

a contact matrix

tau

the transmission probability

gamma

the recovery probability

Value

An object of class netSir with infectious status for each node through time

Examples

cm1=barabasiAlbert(N=200,K=2)
sim1=sirNetmod(cm1,.3,0.1)
summary(sim1)
## Not run: plot(sim1)

[Package epimdr2 version 1.0-9 Index]