Calculate Mean Residual Life (MRL) and Related Values for Different Distributions
Overview
A pair of functions for calculating mean residual life (MRL) , median residual life, and percentile residual life using the outputs of either the 'flexsurv' package or parameters provided by the user. Input information about the distribution, the given 'life' value, the percentile, and the type of residual life, and the function will return your desired values. For the 'flexsurv' option, the function allows the user to input their own data for making predictions. This function is based on Jackson (2016) doi:10.18637/jss.v070.i08.
- Updates to genF and genF.orig to handle all values of parameters.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 3 (1 internal)includes a package overview page
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 67%
- reslife-demo HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/an-crawford/reslife on 2026-10-21.
Dependencies
Installing reslife adds 48 packages (30 with compiled code, 45 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Package metadata
- First published
- 2023-08-15
- Total releases
- 4 / 3 yrs
- License
- GPL (>= 3) OSI
- Download size
- 72 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("reslife")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-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.