Description Usage Arguments Details Value
Stochastically simulates disease transmission given the current state of the discordand edgelist.
1 | trans_msm(dat, at)
|
dat |
Master data list object of class |
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 (one sexual act) between dyads on the network. After transmission events, individual-level attributes for the infected persons are updated and summary statistics for incidence calculated.
The per-act transmission probability depends on the following elements: insertive versus receptive role, viral load of the infected partner, an acute stage infection excess risk, condom use, and the CCR5 genetic allele. Given these transmission probabilities, transmission is stochastically simulating by drawing from a binomial distribution for each act conditional on the per-act probability.
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, and by race and age groups 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.