life_table | R Documentation |
Calculates and outputs life table
life_table(age, population, deaths)
age |
Vector of age categories |
population |
Vector of population counts for each age category |
deaths |
Vector of death counts for each age category |
Data frame of life table consisting of the following columns: age, population, deaths, cpd: conditional probability of death, cps: conditional probability of survival, survival_prop: survival proportion, person_years, total_years: total person years, life_expectancy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.