Skip to content

reslife

0.2.1Package record

Calculate Mean Residual Life (MRL) and Related Values for Different Distributions

0packages depend
2.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.2.1
  • Updates to genF and genF.orig to handle all values of parameters.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.5 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.1
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.2.1Citation fileNoWebsitenot declared in DESCRIPTION
Description cites a JSS article
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%
Vignettes (1)

Downloads

2.1K
CRAN downloads in the past year
Rank #22,292 · ~6/day · ~179/mo
Daily download trend is not available in this view yet.
21330 days
59990 days
2.1K1 year
Compare downloads with other packages →
Also on64 r2u2 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
0Releases
108Commits
4Commit identities
License file reads as GPL-3.0 · 108 commits · Last activity 2023-11-07 · 0% stars, 30d
Responsiveness
How these are sampled
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

2024-03-01 · 12026-07-07 · 1
PracticesBeta

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.

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

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.

Imports (0)
none
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Maintainer since 0.1.0 (2023), Author
Author · added in 0.1.1
Releases (4)

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
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.1Latest
    record
    2023-10-26 · current release · diff ↗
  • 0.1.2
    record
    2023-09-20 · diff ↗
  • 0.1.1
    record
    2023-09-18 · diff ↗
  • 0.1.0
    record
    2023-08-15
  • R
    R 4.3.0 released · 2023-04-21

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")
Crawford, A., Lee, K. L., & Wang, Z. (2023). reslife: Calculate Mean Residual Life (MRL) and Related Values for Different Distributions (Version 0.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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