Skip to content

MortalityGaps

1.0.7Package record

The Double-Gap Life Expectancy Forecasting Model

0packages depend
2.7Kdownloads / year
98.4%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.0.7
  • make it a better citizen: rearrange files, namespace, dependencies, links.

From NEWS in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.2 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.0.7
READMEYes · 278 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.0.7Citation fileNoWebsitenot declared in DESCRIPTION
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

2.7K
CRAN downloads in the past year
Rank #18,208 · ~7/day · ~226/mo
Daily download trend is not available in this view yet.
25730 days
70890 days
2.7K1 year
Compare downloads with other packages →
Also on87 r2u1 autocran37 c2d4u

Repository

3Stars
1Forks
1Open issues
0Open PRs
0Releases
51Commits
3Commit identities
mortality-forecastingdemographyforecasting-life-expectancylongevity
License file reads as GPL-3.0 · 51 commits · Last activity 2025-04-02 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-09-09 · 22026-07-07 · 3
PracticesBeta

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.

Continuous integration (4)
GitHub ActionsR CMD check workflowTravis CI (config file)AppVeyor

The R CMD check workflow runs on macOS

Governance and community (2)
Code of conductContributing guide
Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
data-raw/
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 1.0.0 (2018)
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.7Latest
    record
    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
    record
    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
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 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.

APA

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

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.

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