how-to-use-healthexpectancies.Rmd
library(healthexpectancies)
This function calculates life expectancies and disability-free life expectancies from a dataset containing (at least) information on age, mortality rates and disability prevalence.
As an option, a ‘sex’ and ‘categ’ variables can be added in the input dataset. If so, calculations are made for each separate values of ‘sex’ and ‘categ’. The latter is an undefinit category variables, for instance region or social category. If the initial dataset contains variable ‘year’, calculations are also made for each separate years.
Calculations are made using the Sullivan method. They completely follow example 1 provided in the Sullivan manual (June 2007 version), available at https://reves.site.ined.fr/en/resources/computation_online/sullivan/. One minor deviation is that the ad-hoc value for the conditional probability of death (qx) at age 0 is note taken into account.
The input table is a dataset containing at least the 3 variables above. The output table is a dataset containing all input variables and additionnal variables that are useful for the calculations of LE and DFLE. If those variables are already in the input table, they are not calculated and the input variables are used instead.
Definitions of variables in the input or output dataset:
This function approximates a vector of prevalences (according to age) by a polynomial function.
The degree of the polynomial can be chosen. Default value is 4.
Weights can also be defined (eg. number of survivors at each each). By default, all ages are weighted identically.
This function calculates prevalences at each age, given a polynomial function.
Parameters are the following :
This function forecasts the values of disability prevalences and of DFLE according to age, given initial datasets containing age, disability prevalences at a reference year, forecasted mortality rates, and on hypothesis on the evolution of disabilities.
Forecasting options are :
Several datasets are included in the healthexpectancies package. All of them relates to France.
Insee is the French national institute for statistics and economic studies. It publishes population forecasts every 5 years (last publication was in 2016). Forecasted mortality rates by sex for the ‘central’ scenario are included in the package.
See https://www.insee.fr/fr/information/2546485#titre-bloc-3 for more information about the forecasting methods.