Learn R Programming

MortalityLaws (version 2.2.0)

coale.demeny.ax: Find ax[1:2] indicators using Coale-Demeny coefficients Here we adjust the first two values of ax to account for infant mortality more accurately

Description

Find ax[1:2] indicators using Coale-Demeny coefficients Here we adjust the first two values of ax to account for infant mortality more accurately

Usage

coale.demeny.ax(x, mx, ax, sex)

Value

A vector of coefficients

Arguments

x

Numeric vector of ages at the beginning of each age interval. For a full life table, use single-year ages (e.g., 0:110). For an abridged life table, use the lower bound of each interval (e.g., c(0, 1, 5, 10, ..., 110)).

mx

Age-specific death rate in the age interval [x, x+n). Defined as Dx / Ex.

ax

Numeric vector representing the average number of person-years lived in the age interval by those who die in that interval. If NULL (the default), ax is estimated internally using a standard formula. You may supply a single value (applied to all intervals) or a vector of the same length as x. A common assumption is ax = 0.5, which places deaths at the midpoint of each interval.

sex

Sex of the population. Options are NULL (default), "male", "female", or "total". When specified, the first two entries of the ax column are adjusted using Coale-Demeny coefficients, producing more accurate life-table values at the youngest ages. The adjustment differs slightly between males and females.