This is the source code for the MultiMoMo
package, which is still under development.
To install MultiMoMo
from GitHub, first install the devtools
package:
install.packages('devtools')
devtools::install_github('RobbenJ/MultiMoMo')
The goal of the package MultiMoMo
is to build a multipopulation mortality model using the Li-Lee approach.
In short, the following concepts are tackled:
- Downloading annual mortality data from HMD and Eurostat: period death counts and period exposures-to-risk per gender, per age, per country and per year. Period exposures from Eurostat are not available, but are calculated using the HMD-protocol.
- Calibrating the multi-population mortality model (Li-Lee model) which consists out of two Lee-Carter models: one for the common trend (multi-population trend) and one for the country-specific deviation from this trend.
- Fitting a time series process (RWD or AR(k)-process) to the time-dependent parameters in the Li-Lee model.
- Projecting the time dependent parameters to future years using the fitted time series processes and using multiple simulations.
- Closing (the simulations of) the mortality rates.
- Calculating period and cohort life expectancies.