Skip to content

MortalityGaps

1.0.7

The Double-Gap Life Expectancy Forecasting Model

0packages depend
2.6Kdownloads / year
98.4%test coverage
13/13checks pass

Overview

About
Maintained by Marius D. PascariuFirst published 2018-07-202 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.15
98.4%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-30
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 278 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
16%

Downloads

2.6K
CRAN downloads in the past year
Rank #16,663 · ~7/day · ~217/mo
Daily download trend is not available in this view yet.
13030 days
63890 days
2.6K1 year
Compare downloads with other packages →
Also on118 r2u17 autocran33 c2d4u

Repository

Repository
3Stars
1Forks
1Open issues
0Open PRs
0Releases
51Commits
3Contributors
mortality-forecastingdemographyforecasting-life-expectancylongevity
License GPL-3.0 · 51 commits · Last activity 2025-04-02 · 0% stars, 30d

Stars over time

2021-12-07 · 12026-07-07 · 3

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/mpascariu/mortalitygaps on 2026-08-16.

Continuous integration (3)
GitHub ActionsTravis CIAppVeyor
Reproducibility and dev environment (1)
data-raw/
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.7Latest
    2025-04-02 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.0.0
    2018-07-20
  • R
    R 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
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("MortalityGaps")
Pascariu, M. D. (2025). MortalityGaps: The Double-Gap Life Expectancy Forecasting Model (Version 1.0.7) [Computer software]. https://doi.org/10.32614/CRAN.package.MortalityGaps

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MortalityGaps version 1.0.7 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy