sim_SI_unif: sim_SI_unif

View source: R/sim_SI_unif.R

sim_SI_unifR Documentation

sim_SI_unif

Description

sim_SI_unif simulates the spread of an infectious disease on a social network using the Susceptible-Infected compartmental model with one uniform interaction per dyad per day

Usage

sim_SI_unif(network_el, beta, days)

Arguments

network_el

an edgelist file generated by igraph

beta

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

days

the maximum number of days for which your simulation will run

Value

vector with 3 elements, 1: number of days simulation went for, 2: final number of susceptible individuals, 3: final numbre of infected individuals


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