# R: Function to simulate an epidemic on a network

NetworkSIR {epimdr} | 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

    NetworkSIR(CM, tau, gamma)

### Arguments

`CM` | a contact matrix
`tau` | the transmission probabiliy
`gamma` | the recovery probabiliy

### Value

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

### Examples

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

[Package epimdr version 0.6-4 Index]