lifeTable: Construct lifetable based on qx-column

lifeTableR Documentation

Construct lifetable based on qx-column

Description

qx = age-specific probability of dying

Usage

lifeTable(qx = NULL, mx = NULL, agecohort = 0)

Arguments

qx

Numeric vector (required): Age-specific probabilities of dying

agecohort

Number (optional): Age at which cohort is started

Value

Data.table with lifetable

Examples


qx <- unlist(data.mortall[iso3=="AFG", as.character(0:100), with=FALSE], use.names=FALSE)
lifeTable(qx, 9)

lshtm-vimc/prime documentation built on Feb. 29, 2024, 10:49 a.m.