diseaseSpread: A disease spread function

Description Usage Arguments Examples

Description

This function allows you to simulate disease spread through a network.

Usage

1
diseaseSpread(mat, startnode, p, timesteps, sims)

Arguments

mat

adjacency matrix of 0 and 1s representing potential links which will transmit infection from an infected to an uninfected node at probability described in p

startnode

the node where infection will start

p

probability of infection

timesteps

number of timesteps per simulation

sims

number of simulations

nodenum

total number of nodes in the network

Examples

1
diseasespread()

kelseyandersen/ugsweets documentation built on May 13, 2019, 11:34 a.m.