hivtrans_mig: Transmission Module

View source: R/module.hivtrans.R

hivtrans_migR Documentation

Transmission Module

Description

Stochastically simulates disease transmission given the current state of the discordand edgelist. This function should be used when there is migration.

Usage

hivtrans_mig(dat, at)

Arguments

dat

Master list object containing a networkDynamic object and other initialization information passed from netsim.

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 between dyads on the network. After transmission events, individual-level attributes for the infected persons are updated and summary statistics for incidence calculated.

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 are calculated and stored on dat$epi.


thednainus/HIVepisim documentation built on Nov. 23, 2023, 12:26 a.m.