reduceOpen | R Documentation |
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)
X |
data formatted per the requirements of |
maxA |
integer ignore ages above this age. |
group |
logical. If |
X, with the open age having been reduced either with or without aggregation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.