arrivals_mig: Arrivals Module

View source: R/module.arrival.R

arrivals_migR Documentation

Arrivals Module

Description

Module function for arrivals into the sexually active population. Arrivals are modelled independetly for population 1 (which will have origin = "region" and related to the MSM population in San Diego) and population 2 (which will have origin = global representing the global population of MSM).

Usage

arrivals_mig(dat, at)

Arguments

dat

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

at

Current time step.

Details

New population members are added based on expected numbers of entries, stochastically determined with draws from Poisson distributions. For each new entry, a set of attributes is added for that node, and the nodes are added onto the network objects. Only attributes that are a part of the network model formulae are updated as vertex attributes on the network objects.

Value

This function updates the attr list with new attributes for each new population member, and the nw objects with new vertices.


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