reduceOpen {DDM}R Documentation

chop down or group down the open age

Description

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).

Usage

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

Arguments

X

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

maxA

integer ignore ages above this age.

group

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

Value

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


[Package DDM version 1.0-0 Index]