Oct 30, 2020

Public workspaceVivarium Population Spenser: Fertility protocol

  • 1[The 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 2020. Vivarium Population Spenser: Fertility protocol. protocols.io https://dx.doi.org/10.17504/protocols.io.bn8bmhsn
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: 44003
Abstract
Description of the steps followed by Vivarium Population Spenser library when running the Fertility module.

Divide the annual fertility rates for that local authority by the number of time steps existing in a year.
For each time step:
Select all women in the sample that appear as "alive" and haven't had a child in at least one year.
For these selected women, get the fertility rate given their age, ethnicity and location and turn it into a probability.
Using random sampling and the fertility probability of the women, choose which individuals give birth in that time step. Update their information in the state table with the last time they gave birth.
If children were born in the previous step, add them to the state table and record who their mother is.
Assign them the same ethnicity and location from their mother, assign their sex randomly.