migration: Migration Module

View source: R/module.migration.R

migrationR Documentation

Migration Module

Description

Module function for migrations between two populations

Usage

migration(dat, at)

Arguments

dat

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

at

Current time step.

Details

New migrations from both directions (from population 1 to 2; and from population 2 to 1) will happen based on migration rates and population size for each population stocastically determined with 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.