The Double-Gap Life Expectancy Forecasting Model
Overview
Life expectancy is highly correlated over time among countries and between males and females. These associations can be used to improve forecasts. Here we have implemented a method for forecasting female life expectancy based on analysis of the gap between female life expectancy in a country compared with the record level of female life expectancy in the world. Second, to forecast male life expectancy, the gap between male life expectancy and female life expectancy in a country is analysed. We named this method the Double-Gap model. For a detailed description of the method see Pascariu et al. (2018). doi:10.1016/j.insmatheco.2017.09.011.
- make it a better citizen: rearrange files, namespace, dependencies, links.
From NEWS in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-03-30
- OK14 OK2026-03-10
Documentation
- Help pages
- 19 (14 internal)includes a package overview page
- Examples that run
- 33%1 run in a plain check · 2 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 16% with a bibliography file
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/mpascariu/mortalitygaps on 2026-10-18.
The R CMD check workflow runs on macOS
Dependencies
Installing MortalityGaps adds 43 packages (23 with compiled code, 29 MB of source tarballs). Heaviest: ggplot2 6.0 MB, colorspace 2.0 MB, Rcpp 1.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.0.7Latest
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 1.0.02018-07-20
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-07-20
- Total releases
- 2 / 8 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.4.0
- Bundled data
- 15 KB / 1 file
- Download size
- 317 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MortalityGaps")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.