sim_SIR_w: sim_SIR_w

View source: R/sim_SIR_w.R

sim_SIR_wR Documentation

sim_SIR_w

Description

sim_SIR_w simulates the spread of an infectious disease on a weighted social network using the Susceptible-Infected-Removed compartmental model

Usage

sim_SIR_w(network_el, beta, gamma, intxn_per_day, days)

Arguments

network_el

an edgelist file generated by igraph

beta

a value from 0 to 1 indicating per contract probability of pathogen transmission

gamma

a value from 0 to 1 indicating daily probability of recovery/removal

intxn_per_day

the per capita interaction rate

days

the maximum number of days for which your simulation will run

Value

vector with 5 elements, 1: number of days simulation went for, 2: final number of susceptible individuals, 3: final number of infected individuals, 4: final number of number of removed individuals, 5: maximum number of infected inviduals at any timepoint


collinmmccabe/enss documentation built on May 5, 2024, 6:23 a.m.