LifeTable.core: LifeTable.core

View source: R/LifeTable.R

LifeTable.coreR Documentation

LifeTable.core

Description

LifeTable.core

Usage

LifeTable.core(x, Dx, Ex, mx, qx, lx, dx, sex, lx0, ax)

Arguments

x

Vector of ages at the beginning of the age interval.

Dx

Object containing death counts. An element of the Dx object represents the number of deaths during the year to persons aged x to x+n.

Ex

Exposure in the period. Ex can be approximated by the mid-year population aged x to x+n.

mx

Life table death rate in age interval [x, x+n).

qx

Probability of dying in age interval [x, x+n).

lx

Probability of survival up until exact age x (if l(0) = 1), or the number of survivors at exact age x, assuming l(0) > 1.

dx

Deaths by life-table population in the age interval [x, x+n).

sex

Sex of the population considered here. Default: NULL. This argument affects the first two values in the life table ax column. If sex is specified the values are computed based on the Coale-Demeny method and are slightly different for males than for females. Options: NULL, male, female, total.

lx0

Radix. Default: 100 000.

ax

Numeric scalar. Subject-time alive in age-interval for those who die in the same interval. If NULL this will be estimated. A common assumption is ax = 0.5, i.e. the deaths occur in the middle of the interval. Default: NULL.

Value

A data.frame containing life table results


mpascariu/MortalityLaws documentation built on Jan. 17, 2024, 3:43 a.m.