Convert between age-specific survivorship, survival, or mortality hazard
Convert between vectors of age-specific survivorship (lx), survival probability (px), or mortality hazard (hx). Input vectors must be arranged in order of increasing age, starting with age 0.
lx_to_px(lx) lx_to_hx(lx) px_to_lx(px) px_to_hx(px) hx_to_lx(hx) hx_to_px(hx)
lx |
Vector of age-specific survivorship. |
px |
Vector of age-specific survival probabilities. |
hx |
Vector of age-specific mortality hazards. |
lx
gives the proportional survivorship to the start of age
class x
(where survivorship at first age class is defined as 1),
px
gives the probability of survival between age x
and
x+1
, and hx
gives the time-averaged mortality hazard (also
called force of mortality) between age x
and x+1
.
A vector.
Patrick Barks <patrick.barks@gmail.com>
Ergon, T., Borgan, Ø., Nater, C. R., & Vindenes, Y. 2018. The utility of mortality hazard rates in population analyses. Methods in Ecology and Evolution, 9, 2046-2056. <doi:10.1111/2041-210X.13059>
Other life tables:
age_from_stage
,
mpm_to_table()
,
qsd_converge()
lx <- c(1, 0.8, 0.7, 0.5, 0.3, 0.1) # convert from lx px <- lx_to_px(lx) hx <- lx_to_hx(lx) # convert from px lx <- px_to_lx(px) hx <- px_to_hx(px) # convert from hx lx <- hx_to_lx(hx) px <- hx_to_px(hx)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.