Oct 30, 2020

Public workspaceVivarium Population Spenser: Emigration protocol

  • 1[The Alan Turing Institute];
  • 2The Alan Turing Institute
  • Vivarium Population Spenser
    Tech. support email: crangelsmith@turing.ac.uk
Icon indicating open access to content
QR code linking to this content
Protocol CitationCamila Rangel Smith, Kasra Hosseini 2020. Vivarium Population Spenser: Emigration protocol. protocols.io https://dx.doi.org/10.17504/protocols.io.bn8emhte
License: This is an open access protocol distributed under the terms of the Creative Commons Attribution License,  which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited
Protocol status: Working
We use this protocol and it's working
Created: October 29, 2020
Last Modified: October 30, 2020
Protocol Integer ID: 44006
Abstract
Description of the steps followed by Vivarium Population Spenser library when running the Emigration module.


Divide the annual international emigration rates for that local authority by the number of time steps existing in a year.


For each time step:
Select all individuals in the sample that appear as "alive" and have an associated gender.

For these individuals, get the emigration rate given their age, gender, ethnicity and location and turn it into a probability.

Using random sampling and the emigration probability of the individuals, choose which individuals emigrate in that time step.


Change the status of these individuals from "alive" to "emigrated". Record the time when they emigrated.