View source: R/module.arrival.R
arrivals_mig | R Documentation |
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).
arrivals_mig(dat, at)
dat |
Master list object containing a |
at |
Current time step. |
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.
This function updates the attr
list with new attributes for each new
population member, and the nw
objects with new vertices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.