median: Median age at death of a life table

medianR Documentation

Median age at death of a life table

Description

S4 method for the median generic: the median age at death implied by a lifetable, i.e. the age at which the survivorship column l_x has fallen to half of its value at age (linear interpolation on l_x).

Usage

## S4 method for signature 'lifetable'
median(x, na.rm = FALSE, ...)

Arguments

x

A lifetable or actuarialtable object.

na.rm

Unused, kept for compatibility with the generic.

...

Optional age (default: the youngest tabulated age): the median is computed for the age at death conditional on being alive at age.

Value

The median age at death (a numeric value).

See Also

quantile, modalAge, exn

Examples

data(soa08Act)
median(soa08Act)              # median age at death from birth
median(soa08Act, age = 65)    # median age at death given survival to 65

lifecontingencies documentation built on Oct. 10, 2026, 9:06 a.m.