View source: R/module.hivtrans.R
hivtrans_mig | R Documentation |
Stochastically simulates disease transmission given the current state of the discordand edgelist. This function should be used when there is migration.
hivtrans_mig(dat, at)
dat |
Master list object containing a |
at |
Current time step. |
This is the final substantive function that occurs within the time loop at each time step. This function takes the discordant edgelist and calculates a transmission probability for each row between dyads on the network. After transmission events, individual-level attributes for the infected persons are updated and summary statistics for incidence calculated.
For each new infection, the disease status, infection time, and related
HIV attributes are updated for the infected node. Summary statistics for
disease incidence overall are calculated and stored on dat$epi
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.