An extra lifetable column for use in projections, which require uniform time steps both both age and period. Intervals are either single age or five-year ages. Input vectors are assumed to come from either single or standard abridged ages. Note that the ages of the output Sx are the ages the population would be after the N-year projection.

lt_id_Ll_S(nLx, lx = NULL, Age, AgeInt = NULL, N = 5)

Arguments

nLx

numeric vector of lifetable exposure.

lx

numeric vector of lifetable survivors from same lifetable than nLx. Infered radix from nLx in case is NULL.

Age

integer vector of starting ages.

AgeInt

integer vector of age intervals.

N

integer, the age width for survivor ratios, either 5 or 1. Default 5.

Details

This function does not account for nLx having been pre-binned into uniform 5-year age widths, which will throw an error. Just leave them in abridged ages instead. Note that in the case of abridged ages, the interpretation for the first and second value don't follow the original abridged age intervals: the first value in the probability of surviving from birth into ages 0-4 in the first five years, and the second value is the probability of surviving from 0-4 to 5-9. This represents a slight misalignment with the rest of the lifetable, user beware.