death_table {IBMPopSim} | R Documentation |
Death table
Description
Creates a death table from a population object.
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.
Usage
death_table(pop, ages, period)
Arguments
pop |
Object of class |
ages |
A vector of size |
period |
A vector of size |
Details
The function computes the number of death in each time interval [times[j],times[j+1])
, j=1..M
.
Value
A death table matrix.
Examples
dth_table <- death_table(population(EW_pop_out), 0:101, 0:11)
[Package IBMPopSim version 1.0.0 Index]