Learn R Programming

longevity (version 1.2.1)

Statistical Methods for the Analysis of Excess Lifetimes

Description

A collection of parametric and nonparametric methods for the analysis of survival data. Parametric families implemented include Gompertz-Makeham, exponential and generalized Pareto models and extended models. The package includes an implementation of the nonparametric maximum likelihood estimator for arbitrary truncation and censoring pattern based on Turnbull (1976) , along with graphical goodness-of-fit diagnostics. Parametric models for positive random variables and peaks over threshold models based on extreme value theory are described in Rootzén and Zholud (2017) ; Belzile et al. (2021) and Belzile et al. (2022) .

Copy Link

Version

Install

install.packages('longevity')

Monthly Downloads

359

Version

1.2.1

License

GPL-3

Maintainer

Leo Belzile

Last Published

July 3rd, 2025

Functions in longevity (1.2.1)

pextweibull

Distribution function of the extended Weibull distribution
hazard_fn_elife

Hazard function for various parametric models
fit_elife

Fit excess lifetime models by maximum likelihood
pgomp

Distribution function of the Gompertz distribution
nc_test

Score test of Northrop and Coleman
nll_ditrunc_elife

Likelihood for doubly interval truncated data
lpost_elife

Log posterior distribution with MDI priors
idlmetadata

IDL metadata
fit_ditrunc_elife

Fit excess lifetime models for doubly interval truncated data
nc_score_test

Score test of Northrop and Coleman
pgompmake

Distribution function of the Gompertz-Makeham distribution
pgpd

Distribution function of the generalized Pareto distribution
autoplot.elife_northropcoleman

P-value plot for Northrop and Coleman diagnostic
autoplot.elife_par

Goodness-of-fit plots for parametric models
np_elife

Nonparametric estimation of the survival function
nll_elife

Likelihood for arbitrary censored and truncated data
japanese

Japanese survival data
np_nll

Marginal log likelihood function of the nonparametric multinomial with censoring and truncation
npsurv

Nonparametric maximum likelihood estimation for arbitrary truncation
hperks

Hazard function of the Perks distribution
hweibull

Hazard function of the Weibull distribution
japanese2

Japanese survival data (2)
ewsim

England and Wales simulated supercentenarian data
gppiece

Piece-wise generalized Pareto distribution
hazard_elife

Profile likelihood for hazard
plot.elife_ecdf

Plot empirical distribution function
pextgp

Distribution function of the extended generalized Pareto distribution
r_dtrunc_elife

Sample observations from an interval truncated excess lifetime distribution
r_ditrunc_elife

Sample observations from an interval truncated excess lifetime distribution
pperksmake

Distribution function of the Perks-Makeham distribution
prof_gp_shape

Profile log likelihood for the shape parameter of the generalized Pareto distribution
ks_test

Goodness-of-fit diagnostics
prof_gp_scalet

Profile log likelihood for the transformed scale parameter of the generalized Pareto distribution
turnbull_intervals

Turnbull's sets
test_elife

Likelihood ratio test for covariates
tstab

Threshold stability plots
plot.elife_profile

Plot profile of endpoint
autoplot.elife_tstab

Threshold stability plots
r_ltrc_elife

Sample observations from a left-truncated right-censored excess lifetime distribution
samp2_elife

Sample lifetime from excess lifetime model
test_ditrunc_elife

Likelihood ratio test for doubly interval truncated data
plot.elife_tstab_endpoint

Plot threshold stability plot for endpoint
samp_elife

Simulate excess lifetime with truncation or right-censoring
prof_exp_scale

Profile log likelihood for the scale parameter of the exponential distribution
check_arguments

Check default arguments
check_elife_dist

Check parameters of extended lifetime distributions
endpoint.profile

Profile likelihood for the endpoint of the generalized Pareto distribution
pbeardmake

Distribution function of the Beard-Makeham distribution
boxcox_transfo

Box-Cox transformation function
.censTruncLimitsDtrunc

Identification sets for double truncated data
.wecdf

Weighted empirical distribution function
.turnbull_em_dtrunc

Turnbull EM algorithm (low storage implementation)
.censTruncLimits

Identification sets
hexp

Hazard function of the exponential distribution
.turnbull_em

Turnbull EM algorithm (low storage implementation)
dextgp

Density function of the extended generalized Pareto distribution
endpoint.tstab

Threshold stability plots for endpoint
rbeard

Beard distribution
.check_surv

Check survival output
conf_interv

Confidence intervals for profile likelihoods
elife

Excess lifetime distributions
.turnbull_intervals

Turnbull's sets
dutch

Dutch survival data