survival: Survival Analysis

Contains the core survival analysis routines, including definition of Surv objects, Kaplan-Meier and Aalen-Johansen (multi-state) curves, Cox models, and parametric accelerated failure time models.

Version: 3.5-8
Priority: recommended
Depends: R (≥ 3.5.0)
Imports: graphics, Matrix, methods, splines, stats, utils
Published: 2024-02-14
Author: Terry M Therneau [aut, cre], Thomas Lumley [ctb, trl] (original S->R port and R maintainer until 2009), Atkinson Elizabeth [ctb], Crowson Cynthia [ctb]
Maintainer: Terry M Therneau <therneau.terry at mayo.edu>
License: LGPL-2 | LGPL-2.1 | LGPL-3 [expanded from: LGPL (≥ 2)]
Copyright: see file COPYRIGHTS
URL: https://github.com/therneau/survival
NeedsCompilation: yes
Citation: survival citation info
Materials: NEWS
In views: ClinicalTrials, Econometrics, Survival
CRAN checks: survival results

Documentation:

Reference manual: survival.pdf
Vignettes: Adjusted Survival Curves
Approximating a Cox Model
Multi-state models and competing risks
Concordance
Discrimination and Calibration
Matrix exponentials
Multi-state survival curves
Other vignettes
Population contrasts
Brier scores and the redistribute-to-the-right algorithm
Splines, plots, and interactions
The survival package
Roundoff error and tied times
Using Time Dependent Covariates
Validation

Downloads:

Package source: survival_3.5-8.tar.gz
Windows binaries: r-devel: survival_3.5-8.zip, r-release: survival_3.5-8.zip, r-oldrel: survival_3.5-8.zip
macOS binaries: r-release (arm64): survival_3.5-8.tgz, r-oldrel (arm64): survival_3.5-8.tgz, r-release (x86_64): survival_3.5-8.tgz
Old sources: survival archive

Reverse dependencies:

Reverse depends: aCGH, AER, AF, ahaz, ahMLE, aisoph, APtools, BART, bayesDP, BayesianMediationA, BayesMixSurv, bayesSurv, bcfrailph, bcfrailphdv, BeQut, bhm, biostat3, blapsr, BMA, bpcp, BRACE, bshazard, carcass, CaseCohortCoxSurvival, cchs, censored, CGEN, ClassifyR, cmprsk, coin, ComparisonSurv, compound.Cox, cond, contTimeCausal, Copula.Markov.survival, coxed, coxme, coxphSGD, coxphw, CoxR2, CPE, crrcbcv, crrSC, csampling, ctqr, cuRe, curephEM, currentSurvival, DCEtool, discfrail, distcomp, DOVE, DTAT, dtrSurv, dynpred, ebmstate, epiDisplay, epiR, EquiSurv, EstimationTools, eventTrack, EvidenceSynthesis, expertsurv, factorial2x2, FamEvent, fitdistrplus, flexrsurv, flexsurv, flexsurvcure, FlexVarJM, frailtyEM, frailtyHL, frailtyMMpen, frailtypack, frailtySurv, frequentistSSD, gamlss.cens, gcerisk, geecure, glmpath, globaltest, gmvjoint, GORCure, GSED, gte, haplo.ccs, HCmodelSets, hdbma, HybridMTest, iBST, icenReg, Icens, icensBKL, ICGOR, IDPSurvival, InferenceSMR, InformativeCensoring, interval, invGauss, iPath, IPCWK, ipcwswitch, IPDfromKM, ipflasso, isoSurv, iterativeBMAsurv, jlctree, JM, JMbayes, JMbayes2, JMH, joineR, joineRML, joint.Cox, JSM, kin.cohort, KMunicate, linERR, logicFS, LogicReg, LongCART, lpl, luca, MapGAM, marg, messina, mexhaz, mfp, miRecSurv, missDeaths, mixcure, mma, mmabig, mmc, ModTools, MPLikelihoodWB, mRMRe, MST, mstate, multcomp, multipleNCC, multiridge, NADA, netcox, nftbart, nlreg, nltm, NPHMC, nricens, NSM3, oceCens, OrdFacReg, ordinalgmifs, OTRselect, p3state.msm, packHV, pamr, parfm, partDSA, pch, penalized, PenCoxFrail, penPHcure, peperr, permGS, PHeval, PHInfiniteEstimates, PICBayes, plac, PRIMEplus, psbcGroup, PWEXP, PwrGSD, Qest, qrcm, qrcmNP, randomizeR, rbsurv, RcmdrPlugin.BWS1, RcmdrPlugin.BWS2, RcmdrPlugin.BWS3, RcmdrPlugin.coin, RcmdrPlugin.DCE, RcmdrPlugin.survival, RegParallel, RelDists, relsurv, risksetROC, RobustAFT, rprev, rstpm2, season, seawaveQ, selectiveInference, SemiCompRisks, seqDesign, SigCheck, SIMMS, simMSM, SimNPH, smcure, smoothHR, smoothSurv, snpStats, sox, speff2trial, SPREDA, spsurv, sptm, ssym, STAND, stepp, surrosurvROC, survAH, survBootOutliers, survC1, survcomp, survcompare, survexp.fr, survey, survIDINRI, survivalMPL, survivalSL, survivalsvm, survMisc, SurvRegCensCov, survRM2, survSNP, survstan, SurvTrunc, survtype, TH.data, threg, thregI, timereg, tLagInterim, tnet, TransModel, TwoArmSurvSim, uni.survival.tree, uniah, VAJointSurv, VEwaning, VEwaningVariant, vsd, xhaz, YPBP, YPPE
Reverse imports: ABSurvTDC, ActFrag, addhazard, adjSURVCI, aftgee, afthd, aftR2, afttest, AICcmodavg, allestimates, allMT, amt, ANF, ascii, autoReg, AutoScore, Ball, bamlss, base.rms, bayesCT, BayesCTDesign, BayesFBHborrow, BayesSurvival, baytrends, beanz, BeSS, bestridge, BGPhazard, bigSurvSGD, binequality, BioPETsurv, biospear, BivRec, blockForest, BloodCancerMultiOmics2017, BNPdensity, boot.pval, bossR, BSGW, bujar, c060, calibmsm, CalibrationCurves, canceR, cancerGI, card, carSurv, Cascade, casebase, CaseBasedReasoning, casper, CatPredi, CauchyCP, causalCmprsk, ccostr, CenBAR, cenROC, censCov, censcyt, CeRNASeek, CFC, CFO, cforward, cg, chest, chngpt, chopsticks, CIEE, ciTools, clespr, clintools, cmprskcoxmsm, cmprskQR, coda4microbiome, CohortSurvival, cohorttools, compareGroups, concrete, CondiS, condSURV, consICA, controlTest, CopulaCenR, CoRpower, cotram, Counterfactual, CoxAIPW, CoxBcv, coxphf, coxphMIC, coxrobust, coxrt, CP, CPsurv, CsChange, CSCNet, csmpv, CSTE, CureAuxSP, CureDepCens, cutoff, CutpointsOEHR, cvwrapr, cyclomort, Cyclops, DCEmgmt, dcurves, debest, deeptrafo, DepCens, DeSousa2013, dipm, dirttee, diversityForest, drcSeedGerm, drcte, drgee, drugDemand, DWreg, DynForest, DynNom, dynsurv, ecpc, EGRET, eha, EL2Surv, ELYP, em, ems, EnMCB, eoa3, epade, ePCR, Epi, EpiForsk, epiomics, epistasisGA, epitab, epoc, etm, etree, eventglm, eventPred, EventPredInCure, extrafrail, ezcox, familiar, FastJM, FHtest, fic, figuRes2, finalfit, FLORAL, fmrs, forsearch, GAGAs, gamlss, gbm, GDCRNATools, GEInter, genefilter, GenEst, gestate, GFDsurv, gfoRmula, ggparty, ggplot2.utils, ggquickeda, ggRandomForests, ggrisk, ggsurvfit, GJRM, glm.predict, glmmPen, glmnet, glmnetr, GNOSIS, GofCens, GPSCDF, graphPAF, gravity, greport, GSgalgoR, gsMAMS, GSSTDA, GTDL, GWASinlps, GWASTools, gwasurvivr, HazardDiff, HCTDesign, HDJM, hdnom, hds, hesim, highMLR, HIMA, horseshoenlm, hrcomprisk, ICcalib, ICcforest, ICSKAT, idem, IDMIR, IMAS, imsig, incubate, iNETgrate, interactionRCS, ipred, ipw, ipwCoxCSV, IrregLong, iterativeBMAsurv, ivtools, ivygapSE, JLPM, jmBIG, JointAI, JointFPM, jomo, jskm, jsmodule, jstable, km.ci, kmi, KONPsurv, landest, Landmarking, landmulti, landpred, lava, lcmm, lilikoi, lillies, lodGWAS, longitudinalcascade, longROC, LTRCforests, LTRCtrees, mable, MachineShop, maczic, maftools, MAGNAMWAR, markovMSM, maxcombo, mboost, mccmeiv, MCPModBC, Mediana, meerva, merlin, MetabolicSurv, metaSurvival, mets, mfp2, MFSIS, mhazard, mhurdle, miceafter, miCoPTCM, MicrobiomeSurv, microsimulation, MiMIR, MiRKAT, miWQS, mixPHM, mixtools, mlma, mlr, mlt, mlt.docreg, MMAD, mMARCH.AC, model4you, modeLLtest, mombf, MonotoneHazardRatio, moonBook, mpr, mratios, msaenet, msm, msmtools, MSstats, MTLR, muhaz, multiClust, multisite.accuracy, multiview, multtest, MXM, My.stepwise, NADA2, NetSAM, NNMIS, nnt, nparsurv, nph, NPHazardRate, nphPower, nphRCT, nsROC, numKM, obliqueRSF, ODS, omicsViewer, OneArm2stage, OneArmTTE, OneSampleLogRankTest, OptimalTiming, orthoDr, oscar, OSTE, otrKM, packDAMipd, palasso, PAmeasures, pammtools, party, partykit, pathwayPCA, pathwayTMB, pbatR, PBIR, PCLassoReg, pcoxtime, pda, PDATK, PDN, pec, penalizedclr, pencal, permimp, personalized, Phase123, phenoTest, phers, plasma, plgraphics, plsmselect, plsRcox, PMAPscore, pmcalibration, polle, popEpi, postGGIR, powerSurvEpi, pre, precmed, predRupdate, prioritylasso, prodlim, ProSGPV, psBayesborrow, psbcSpeedUp, psborrow, PScr, pseval, psfmi, psichomics, PTE, PTERP, pubh, Publish, PWEALL, qgcomp, qgcompint, Qindex, QoLMiss, qris, QTOCen, quantreg, quickReg, R2Addhaz, RABR, randomGLM, rankhazard, RcmdrPlugin.KMggplot2, rcssci, reconstructKM, recurrentpseudo, regmedint, regplot, regport, ReIns, remiod, remss, reportRmd, reReg, rigr, riskRegression, RItools, RLassoCox, rms, rmsb, rmstcompsens, rnaEditr, RoBSA, rocTree, ROlogit, rolr, rpsftm, rstanarm, Rsurrogate, RTCGA, RTNsurvival, safestats, SAME, SCCS, SCFA, SCORNET, scRNAtools, SEERaBomb, semicmprskcoxmsm, sGBJ, sglg, shinyCox, shrink, SIDES, sievePH, SIGN, signatureSurvival, signeR, signifinder, sigsquared, simexaft, SimHaz, simIDM, simPH, simtrial, SIS, skpr, smcfcs, smdi, SMDIC, SMPracticals, sMSROC, SNPassoc, sp23design, spatsurv, spBayesSurv, spef, squant, SSRMST, starnet, stdReg, StepReg, stpm, stratamatch, StratifiedMedicine, SubgrpID, success, SUMMER, Sunclarco, superpc, SuRF.vs, Surrogate, SurrogateOutcome, SurrogateTest, surrosurv, surv2sampleComp, survAUC, survAWKMT2, SurvCorr, survCurve, SurvDisc, survELtest, survex, SurvHiDim, survidm, survival.svb, survival666, survivalAnalysis, SurvivalClusteringTree, survivalMPLdc, survivalREC, SurvMetrics, SurvMI, survminer, survobj, survout, survParamSim, survRM2adapt, survRM2perm, survSens, SVMDO, SvyNom, synthpop, tableeasy, targeted, tauProcess, tdROC, tern, tfCox, ThresholdROCsurvival, tidyCDISC, tidycmprsk, TidyDensity, TimeVTree, tinyarray, tLagPropOdds, TNBC.CMS, TOmicsVis, TOP, tornado, trajmsm, tram, tramicp, TraMineRextras, transmdl, tranSurv, TreatmentSelection, trio, truncAIPW, TSDT, tsriadditive, TwoPhaseInd, TwoStepCLogit, vaccine, valorate, VarReg, VBJM, visR, vpc, VSOLassoBag, WCE, Wcompo, wcox, WGCNA, WINS, WLreg, WR, WRTDStidal, xlink, xpose4, YPmodelPhreg
Reverse suggests: adjustedCurves, agridat, ahw, aorsf, aplore3, arsenal, ARTool, atable, bayesplot, BB, BCClong, BFpack, biglasso, bnnSurvival, boot, Boruta, BrokenAdaptiveRidge, broom, broom.helpers, butcher, BuyseTest, CALIBERrfimpute, car, cBioPortalData, cequre, choplump, clinfun, cloneRate, confSAM, contsurvplot, copcor, coreSim, crosstable, CTNote, curatedBladderData, curatedCRCData, curatedOvarianData, DAAG, dawai, depigner, desctable, discSurv, dlnm, doBy, dressCheck, dtrackr, edecob, EmpiricalCalibration, EpiMix, exactRankTests, extremefit, fairml, fastAFT, FastKM, flexmix, fluoSurv, forestmodel, forplo, FRESA.CAD, fwb, gamair, gamboostLSS, gamlss.inf, gap, genefu, genSurv, GGally, ggeffects, ggformula, ggfortify, ggpolar, ggstats, ggstatsplot, glmglrt, glmSparseNet, glmulti, Greg, grf, grImport, grpreg, gtsummary, h2o, hal9001, HarmonizedTCGAData, heemod, highcharter, Hmisc, homomorpheR, HSAUR, HSAUR2, HSAUR3, icrf, injurytools, insight, iNZightRegression, irboost, ISwR, kdry, kernhaz, kmc, kyotil, lavaSearch2, LDM, lmtest, lss2, marginaleffects, marginalizedRisk, MASS, MatchIt, maxstat, mc2d, MCPModGeneral, mediation, metafor, mgcv, mi, mice, midasHLA, mistat, mitml, mlsurvlrnrs, modelsummary, momentuHMM, MultiAssayExperiment, MuMIn, musicatk, ncvreg, netdiffuseR, nipalsMCIA, nlive, nncc, npsm, opera, optband, outreg, pander, parameters, parmsurvfit, parsnip, pder, pensim, performance, ph2bye, ph2mult, phyloregion, pillar, PINSPlus, PlackettLuce, pmartR, pmml, pmxpartab, PResiduals, purge, qwraps2, R2HTML, randomForestSRC, ranger, rattle, recodeflow, relevance, report, reporttools, RESI, ricu, rineq, RLT, rpart, rsimsum, rsmatch, rtables, RVAideMemoire, saemix, safe, sandwich, scFeatures, sharp, shinyPredict, simex, simstudy, simsurv, sirus, smof, smoothROCtime, sparseR, srvyr, SSLR, Statial, statsExpressions, subscreen, support.BWS, support.BWS2, support.BWS3, support.CEs, survivalmodels, SurvivalTests, tab, tableone, tbm, TCGAbiolinks, texmex, tfrmt, tidybulk, tidytidbits, timeROC, tramME, tramnet, tramvs, treeshap, trtf, truncreg, tuneRanger, UCSCXenaShiny, Umpire, utile.tables, utile.tools, utile.visuals, visreg, wally, WeightIt, WinRatio, xtable, yardstick, zlog, ztable
Reverse enhances: denstrip, emmeans, papeR, prediction, qvcalc, stargazer, texreg

Linking:

Please use the canonical form https://CRAN.R-project.org/package=survival to link to this page.