death_table {IBMPopSim} | R Documentation |
Creates a death table from a population data frame.
For each i=1..N-1
and j=1..M
, the number of individuals with age at last birthday in [ages[i],ages[i+1])
and died in [times[j],times[j+1])
is computed.
death_table(population, ages, period)
population |
Population data frame containing at least |
ages |
A vector of size |
period |
A vector of size |
The function computes the number of death in each time interval [times[j],times[j+1])
, j=1..M
.
A death table matrix.
dth_table <- death_table(EW_pop_out, 0:101, 0:31)