Simulation of a population of adults with Gompertz distribution
Source:R/population_simulation.R
pop.sim.gomp.RdIn many instances, it is useful to calculate with a population with known parameters. To generate a population with realistic characteristics is less obvious than it seems. We operate here with the Gompertz distribution which provides a reasonable approximation of human mortality for adult mortality, that is for the ages >= 15 years. The user has to specify either the parameter b or the modal age M. The modal age M is particular useful as it provides an intuitive understanding of the resulting age distribution. In both instances, the second parameter a is generated by the regression formula found by Sasaki and Kondo 2016. If neither is given, a population with random parameters realistic for pre-modern times is generated.
Value
A list of two data.frames with the following items:
First data.frame
N: Number of individuals.
b: Gompertz parameter controlling mortality.
M: Modal age.
a: Gompertz parameter controlling hazard of the youngest age group.
Second data.frame
ind: ID of individuals.
age: Simulated absolute age.
References
Sasaki T, Kondo O (2016). “An informative prior probability distribution of the gompertz parameters for bayesian approaches in paleodemography.” American Journal of Physical Anthropology, 159(3), 523–533. doi:10.1002/ajpa.22891 .