Package: reslife 0.2.1

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

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>.

Authors:Andrew Crawford [cre, aut], Zekai Wang [aut], Ka Lok Lee [aut]

reslife_0.2.1.tar.gz
reslife_0.2.1.zip(r-4.5)reslife_0.2.1.zip(r-4.4)reslife_0.2.1.zip(r-4.3)
reslife_0.2.1.tgz(r-4.5-any)reslife_0.2.1.tgz(r-4.4-any)reslife_0.2.1.tgz(r-4.3-any)
reslife_0.2.1.tar.gz(r-4.5-noble)reslife_0.2.1.tar.gz(r-4.4-noble)
reslife_0.2.1.tgz(r-4.4-emscripten)reslife_0.2.1.tgz(r-4.3-emscripten)
reslife.pdf |reslife.html
reslife/json (API)
NEWS

# Install 'reslife' in R:
install.packages('reslife', repos = c('https://an-crawford.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/an-crawford/reslife/issues

On CRAN:

Conda:

4.18 score 1 stars 2 scripts 162 downloads 2 exports 56 dependencies

Last updated 1 years agofrom:350310d614. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKApr 01 2025
R-4.5-winOKApr 01 2025
R-4.5-macOKApr 01 2025
R-4.5-linuxOKApr 01 2025
R-4.4-winOKApr 01 2025
R-4.4-macOKApr 01 2025
R-4.4-linuxOKApr 01 2025
R-4.3-winOKApr 01 2025
R-4.3-macOKApr 01 2025

Exports:residlifereslifefsr

Dependencies:assertthatbbmlebdsmatrixBHclicolorspacecpp11data.tabledeSolvedplyrfansifarverfastGHQuadflexsurvgenericsggplot2gluegslgtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmstatemuhazmunsellmvtnormnlmenumDerivpillarpkgconfigpracmapurrrquadprogR6RColorBrewerRcppRcppArmadillorlangrstpm2scalesstatmodstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

'reslife' Package Demo

Rendered fromreslife-demo.Rmdusingknitr::rmarkdownon Apr 01 2025.

Last update: 2023-08-18
Started: 2023-07-19