prevalence_mig: Prevalence Calculations within Time Steps for 2 populations

View source: R/module.prevalence.R

prevalence_migR Documentation

Prevalence Calculations within Time Steps for 2 populations

Description

This module calculates demographic, transmission, and clinical statistics at each time step within the simulation.

Usage

prevalence_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 function establishes the summary statistic vectors for both prevalence and incidence at time 1, and then calculates the prevalence statistics for times 2 onward. Incidence statistics (e.g., number of new infections or deaths) are calculated within the modules (arrival and departure) as they depend on vectors that are not stored external to the module.

Value

This function returns the dat object with an updated summary of current attributes stored in dat$epi.


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