life_table: life_table

View source: R/life_table.R

life_tableR Documentation

life_table

Description

Calculates and outputs life table

Usage

life_table(age, population, deaths)

Arguments

age

Vector of age categories

population

Vector of population counts for each age category

deaths

Vector of death counts for each age category

Value

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


nicktedesco/epiTools documentation built on May 4, 2022, 2:56 a.m.