reduceOpen: chop down or group down the open age

Description Usage Arguments Value

View source: R/utils.R


These methods are not intended to be applied to ages greater than, say 90 or 95. Usually, we'd top out in the range 75 to 85. In any case, the Coale-Demeny life table implementation that we have only goes up to age 95, so there is a practical limitation to deriving a remaining life expectancy for the open age group. If a user tries to apply the Bennett-Horiuchi methods to data with higher open ages, stuff breaks for the time being. So this function chops the data off at min(maxA,95), after having (optionally) grouped data down. This function needs to work with a single partition of data (intercensal period, sex, region, etc).


reduceOpen(X, maxA = 75, group = TRUE)



data formatted per the requirements of bh1(), bh2()


integer ignore ages above this age.


logical. If TRUE we sum down to min(maxA,95). If FALSE, we just chop off data above that age.


X, with the open age having been reduced either with or without aggregation.

DDM documentation built on May 2, 2019, 6:16 a.m.

Related to reduceOpen in DDM...