hivtrans_msm: Transmission Module

Description Usage Arguments Details Value

View source: R/mod.hivtrans.R

Description

Stochastically simulates disease transmission given the current state of the discordand edgelist.

Usage

1
2
3
hivtrans_msm(dat, at)

trans_het(dat, at)

Arguments

dat

Master data list object of class dat containing networks, individual-level attributes, and summary statistics.

at

Current time step.

Details

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, and condom use. Given these transmission probabilities, transmission is stochastically simulating by drawing from a binomial distribution for each act conditional on the per-act probability.

Value

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.


statnet/EpiModelHIVmsm documentation built on Aug. 28, 2020, 11:07 p.m.