calc_lx: Age-Specific Survival Rate l_x

View source: R/lifetable_indicators.R

calc_lxR Documentation

Age-Specific Survival Rate l_x

Description

The proportion of the original cohort that is still alive at age x, obtained by summing the age-stage survival rates over all stages: l_x = sum over j of s_xj.

Usage

calc_lx(lt, sxj = NULL)

Arguments

lt

A life_table object returned by lifeTable_read.

sxj

Optional; the result of calc_sxj. Supplying it avoids recomputing the age-stage survival rates.

Value

A data frame with the columns Age and l_x; a terminal row with l_x = 0 is appended so that the survival curve ends at zero.

References

Chi, H. (1988) Life-table analysis incorporating both sexes and variable development rates among individuals. Environmental Entomology 17(1), 26-34.

See Also

calc_sxj, calc_mx

Examples

f <- system.file("extdata", "lifetable_example.csv", package = "insectecol")
lt <- lifeTable_read(f)
head(calc_lx(lt))

insectecol documentation built on Oct. 5, 2026, 5:08 p.m.