age_pyramids

0th

Percentile

Age pyramid from a population data frame at some given times.

Vectorial version in time of the function age_pyramid. Not compatible with IBMs including swap events.

Usage
age_pyramids(population, time = 0, ages = c(0:110, Inf))
Arguments
population

Population data frame: characteristics in columns and individuals in rows. At least two columns birth (dates of birth) and death (dates of death) are required.

time

The age pyramid is computed at instants time. Must be a numeric vector of greater than or equal to 0.

ages

(Optional) A numeric vector of distinct positive values composing age groups. Must be in increasing order.

Details

For convenience. This is a just a lapply call of age_pyramid on the vector time.

Aliases
  • age_pyramids
Documentation reproduced from package IBMPopSim, version 0.3.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.