sim_SI | R Documentation |
sim_SI simulates the spread of an infectious disease on a social network using the Susceptible-Infected compartmental model
sim_SI(network_el, beta, intxn_per_day, days)
network_el |
an edgelist file generated by igraph |
beta |
a value from 0 to 1 indicating per contract probability of pathogen transmission |
intxn_per_day |
the per capita interaction rate |
days |
the maximum number of days for which your simulation will run |
vector with 3 elements, 1: number of days simulation went for, 2: final number of susceptible individuals, 3: final numbre of infected individuals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.