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>.
Package details |
|
---|---|
Author | Andrew Crawford [cre, aut], Zekai Wang [aut], Ka Lok Lee [aut] |
Maintainer | Andrew Crawford <atcrawford18@gmail.com> |
License | GPL (>= 3) |
Version | 0.2.1 |
URL | https://github.com/an-crawford/reslife |
Package repository | View on CRAN |
Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.