alan-turing-institute / vivarium_population_spenser

Vivarium microsimulation tools used to model population evolution with the SPENSER project
GNU General Public License v3.0
3 stars 0 forks source link

Feature/39 emigration aggregate #42

Closed crangelsmith closed 4 years ago

crangelsmith commented 4 years ago

Closes #39

Extended the migration rate calculation function to estimate an aggregated rate for people over certain age (slightly hacky but does the job, we can refactor it later if needed). The age of aggregation is a variable given to the function. The function still has the default option of treating each age group individually (if no age for aggregation is given).

The notebook 005 has been updated to reflect this new implementation on the emigration rate.