longevity1.2.2 package

Statistical Methods for the Analysis of Excess Lifetimes

beard

Beard distribution

beardmake

Distribution function of the Beard-Makeham distribution

boxcox_transfo

Box-Cox transformation function

check_arguments

Check default arguments

check_elife_dist

Check parameters of extended lifetime distributions

conf_interv

Confidence intervals for profile likelihoods

dot-censTruncLimits

Identification sets

dot-censTruncLimitsDtrunc

Identification sets for double truncated data

dot-check_surv

Check survival output

dot-turnbull_em_dtrunc

Turnbull EM algorithm (low storage implementation)

dot-turnbull_em

Turnbull EM algorithm (low storage implementation)

dot-turnbull_intervals

Turnbull's sets

dot-wecdf

Weighted empirical distribution function

elife

Excess lifetime distributions

endpoint.profile

Profile likelihood for the endpoint of the generalized Pareto distribu...

endpoint.tstab

Threshold stability plots for endpoint

exponential

Hazard function of the exponential distribution

extgp

Density function of the extended generalized Pareto distribution

extweibull

Distribution function of the extended Weibull distribution

fit_ditrunc_elife

Fit excess lifetime models for doubly interval truncated data

fit_elife

Fit excess lifetime models by maximum likelihood

gomp

Distribution function of the Gompertz distribution

gompmake

Distribution function of the Gompertz-Makeham distribution

gpd

Distribution function of the generalized Pareto distribution

gppiece

Piece-wise generalized Pareto distribution

hazard_elife

Profile likelihood for hazard

hazard_fn_elife

Hazard function for various parametric models

hweibull

Hazard function of the Weibull distribution

ks_test

Goodness-of-fit diagnostics

lpost_elife

Log posterior distribution with MDI priors

nc_score_test

Score test of Northrop and Coleman

nc_test

Score test of Northrop and Coleman

nll_ditrunc_elife

Likelihood for doubly interval truncated data

nll_elife

Likelihood for arbitrary censored and truncated data

np_elife

Nonparametric estimation of the survival function

np_nll

Marginal log likelihood function of the nonparametric multinomial with...

npsurv

Nonparametric maximum likelihood estimation for arbitrary truncation

perks

Hazard function of the Perks distribution

perksmake

Distribution function of the Perks-Makeham distribution

pextgp

Distribution function of the extended generalized Pareto distribution

plot.elife_ecdf

Plot empirical distribution function

plot.elife_northropcoleman

P-value plot for Northrop and Coleman diagnostic

plot.elife_par

Goodness-of-fit plots for parametric models

plot.elife_profile

Plot profile of endpoint

plot.elife_tstab_endpoint

Plot threshold stability plot for endpoint

plot.elife_tstab

Threshold stability plots

prof_exp_scale

Profile log likelihood for the scale parameter of the exponential dist...

prof_gp_scalet

Profile log likelihood for the transformed scale parameter of the gene...

prof_gp_shape

Profile log likelihood for the shape parameter of the generalized Pare...

r_ditrunc_elife

Sample observations from an interval truncated excess lifetime distrib...

r_dtrunc_elife

Sample observations from an interval truncated excess lifetime distrib...

r_ltrc_elife

Sample observations from a left-truncated right-censored excess lifeti...

samp_elife

Simulate excess lifetime with truncation or right-censoring

samp2_elife

Sample lifetime from excess lifetime model

test_ditrunc_elife

Likelihood ratio test for doubly interval truncated data

test_elife

Likelihood ratio test for covariates

tstab

Threshold stability plots

turnbull_intervals

Turnbull's sets

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) <doi:10.1111/j.2517-6161.1976.tb01597.x>, 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) <doi:10.1007/s10687-017-0305-5>; Belzile et al. (2021) <doi:10.1098/rsos.202097> and Belzile et al. (2022) <doi:10.1146/annurev-statistics-040120-025426>.

  • Maintainer: Leo Belzile
  • License: GPL-3
  • Last published: 2025-08-22