View source: R/net.mod.infection.R
infection.net | R Documentation |
This function simulates the main infection process given the current state of the partnerships and disease in the system.
infection.net(dat, at)
dat |
Main |
at |
Current time step. |
The main steps in this infection module are as follows:
Get IDs for current infected and susceptible nodes given the current disease status.
Call discord_edgelist
to get the current discordant
edgelist given step 1.
Determine the transmission rates (e.g., as a function of group).
Pull the number of acts per partnership in a time step from the
act.rate
parameter.
Calculate the final transmission probabilities given the transmission rates and act rates.
Randomly transmit on the discordant edgelist.
Conduct bookkeeping for new infections to update status on the nodes and calculate disease incidence.
The updated netsim_dat
main list object.
discord_edgelist
is used within infection.net
to obtain a discordant edgelist.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.