Computes the conditional probability of being alive at each age x >= age0,
given survival to age0, from an HMD-style period life table. For each year,
the returned series is:
chance_alive(x | age0) = lx(x) / lx(age0).
Arguments
- lt
A life table tibble as returned by
read_life_table(), containing at leastPopName,Year,Age, andlx.- pop_name
Population code (HMD
PopName) to filter withinlt(e.g."BGR","USA","DEUTNP").- age0
Baseline age (integer). Returned ages start at
age0.
Examples
if (FALSE) { # \dontrun{
lt_m <- read_life_table(file.path("data", "life"), sex = "m", look_back = 10)
ca <- chance_alive(lt_m, pop_name = "BGR", age0 = 27)
ca
} # }