Learn R Programming

longevity (version 1.3)

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

505

Version

1.3

License

GPL-3

Maintainer

Leo Belzile

Last Published

February 3rd, 2026

Functions in longevity (1.3)

hazard_fn_elife

Hazard function for various parametric models
fit_elife

Fit excess lifetime models by maximum likelihood
hweibull

Hazard function of the Weibull distribution
gppiece

Piece-wise generalized Pareto distribution
pgompmake

Distribution function of the Gompertz-Makeham distribution
pextweibull

Distribution function of the extended Weibull distribution
hazard_elife

Profile likelihood for hazard
pgpd

Distribution function of the generalized Pareto distribution
pgomp

Distribution function of the Gompertz distribution
fit_ditrunc_elife

Fit excess lifetime models for doubly interval truncated data
nll_elife

Likelihood for arbitrary censored and truncated data
japanese2

Japanese survival data (2)
np_elife

Nonparametric estimation of the survival function
lpost_elife

Log posterior distribution with MDI priors
nc_test

Score test of Northrop and Coleman
nll_ditrunc_elife

Likelihood for doubly interval truncated data
idlmetadata

IDL metadata
nc_score_test

Score test of Northrop and Coleman
japanese

Japanese survival data
ks_test

Goodness-of-fit diagnostics
plot.elife_profile

Plot profile of endpoint
pperksmake

Distribution function of the Perks-Makeham distribution
npsurv

Nonparametric maximum likelihood estimation for arbitrary truncation
autoplot.elife_tstab

Threshold stability plots
hperks

Hazard function of the Perks distribution
autoplot.elife_northropcoleman

P-value plot for Northrop and Coleman diagnostic
pextgp

Distribution function of the extended generalized Pareto distribution
np_nll

Marginal log likelihood function of the nonparametric multinomial with censoring and truncation
autoplot.elife_par

Goodness-of-fit plots for parametric models
plot.elife_ecdf

Plot empirical distribution function
prof_gp_shape

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

Simulate excess lifetime with truncation or right-censoring
plot.elife_tstab_endpoint

Plot threshold stability plot for endpoint
test_ditrunc_elife

Likelihood ratio test for doubly interval truncated data
r_dtrunc_elife

Sample observations from an interval truncated excess lifetime distribution
samp2_elife

Sample lifetime from excess lifetime model
r_ltrc_elife

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

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

Sample observations from an interval truncated excess lifetime distribution
prof_exp_scale

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

Turnbull's sets
test_elife

Likelihood ratio test for covariates
tstab

Threshold stability plots
check_arguments

Check default arguments
.censTruncLimitsDtrunc

Identification sets for double truncated data
check_elife_dist

Check parameters of extended lifetime distributions
boxcox_transfo

Box-Cox transformation function
.censTruncLimits

Identification sets
pbeardmake

Distribution function of the Beard-Makeham distribution
rbeard

Beard distribution
.turnbull_em

Turnbull EM algorithm (low storage implementation)
conf_interv

Confidence intervals for profile likelihoods
.check_surv

Check survival output
ewsim

England and Wales simulated supercentenarian data
endpoint.profile

Profile likelihood for the endpoint of the generalized Pareto distribution
endpoint.tstab

Threshold stability plots for endpoint
.wecdf

Weighted empirical distribution function
elife

Excess lifetime distributions
hexp

Hazard function of the exponential distribution
.turnbull_intervals

Turnbull's sets
dutch

Dutch survival data
.turnbull_em_dtrunc

Turnbull EM algorithm (low storage implementation)
dextgp

Density function of the extended generalized Pareto distribution