CRAN Task View: Survival Analysis

Maintainer:Arthur Allignol, Aurelien Latouche
Contact:arthur.allignol at
Contributions:Suggestions and improvements for this task view are very welcome and can be made through issues or pull requests on GitHub or via e-mail to the maintainer address. For further details see the Contributing guide.
Citation:Arthur Allignol, Aurelien Latouche (2022). CRAN Task View: Survival Analysis. Version 2022-03-07. URL
Installation:The packages from this task view can be installed automatically using the ctv package. For example, ctv::install.views("Survival", coreOnly = TRUE) installs all the core packages or ctv::update.views("Survival") installs all packages that are not yet installed and up-to-date. See the CRAN Task View Initiative for more details.

Survival analysis, also called event history analysis in social science, or reliability analysis in engineering, deals with time until occurrence of an event of interest. However, this failure time may not be observed within the relevant time period, producing so-called censored observations.

This task view aims at presenting the useful R packages for the analysis of time to event data.

Please let the maintainers know if something is inaccurate or missing, either via e-mail or by submitting an issue or pull request in the GitHub repository linked above.

Standard Survival Analysis

Estimation of the Survival Distribution

Hazard Estimation


Regression Modelling

Multistate Models

Relative Survival

Random Effect Models

Multivariate Survival

Multivariate survival refers to the analysis of unit, e.g., the survival of twins or a family. To analyse such data, we can estimate the joint distribution of the survival times

Bayesian Models

Machine learning

Predictions and Prediction Performance

Power Analysis



This section tries to list some specialised plot functions that might be useful in the context of event history analysis.


CRAN packages

Core:cmprsk, eha, mstate, muhaz, rms, survival, timereg.
Regular:addhazard, AER, aftgee, ahaz, APtools, asaur, asbio, aster, aster2, BaSTA, BayesPiecewiseICAR, bayesSurv, BMA, bnnSurvival, boot, bpcp, bshazard, bujar, casebase, censReg, CFC, clinfun, cmprskQR, coarseDataTools, coin, compareC, compound.Cox, concreg, condGEE, condSURV, controlTest, coxinterval, coxme, coxphf, coxphw, coxrobust, coxsei, Cprob, crrSC, crrstep, csci, currentSurvival, Cyclops, DAAG, dblcens, discSurv, DTDA, dynpred, dynsurv, ELYP, emplik, emplik2, Epi, epiR, etm, exactRankTests, FamEvent, fastcox, fastpseudo, FHtest, fitdistrplus, flexrsurv, flexsurv, frailtyEM, frailtyHL, frailtypack, frailtySurv, gamboostMSM, gamlss.cens, gbm, gcerisk, gems, genSurv, glmnet, glmpath, GORCure, gss, GSSE, gte, hdnom, ICBayes, icenReg, ICGOR, icRSF, ICsurv, IDPSurvival, imputeYn, InformativeCensoring, intccr, interval, intsurv, invGauss, ipred, jackknifeKME, JM, JMbayes, joineR, joineRML, joint.Cox, JointModel, kaps,, kmc, kmi, KMsurv, KONPsurv, landest, lbiassurv, LearnBayes, LexisPlotR, locfit, logconcens, LogicReg, LogrankA, logspline, lpc, lsmeans, LTRCtrees, maxcombo, maxstat, mboost, MCMCglmm, MCMCpack, mets, mexhaz, miCoPTCM, MicSim, mixAK, mixPHM, MLEcens, msm, msmtools, MST, multcomp, multipleNCC, mvna, NADA, NPHMC, NPMLEcmprsk, npsurv, OrdFacReg, paf, pamr, parfm, party, pch, pec, penalized, PenCoxFrail, penMSM, peperr, PermAlgo, PHeval, plac, plsRcox, polspline, powerSurvEpi, PReMiuM, prodlim, psbcGroup, pseudo, quantreg, randomForestSRC, ranger, rankhazard, reda, relsurv, reReg, rhosp, riskRegression, risksetROC, RobustAFT, rpart, rstanarm, rstpm2, saws, SemiCompRisks, SemiMarkov, SGL, simexaft, SimHaz, simMSM, simPH, SimSCRPiecewise, simsurv, SimSurvNMarker, smcure, SmoothHazard, smoothHR, smoothSurv, SMPracticals, spatstat, spBayesSurv, spef, SSRMST, superpc, surv2sampleComp, survAUC, survC1, SurvCorr,, survey, survIDINRI, survivalMPL, survivalROC, survJamda, SurvLong, survminer, survMisc, survPresmooth, SurvRegCensCov, survRM2, survsim, survSNP, SvyNom, tdROC, thregI, timeROC, TP.idm, TPmsm, tpr, TraMineR, TransModel, tranSurv, TSHRC, VGAM, vitality, vsd, YPmodel.
Archived:AdapEnetClass, BayHaz, crrp, glrt, ICE, lmec, MIICD, mlr3proba, MRsurv, msSurv, p3state.msm, TBSSurvival, tlmec, uniah.

Related links

Other resources