Rdocumentation
powered by
Learn R Programming
survival (version 3.8-6)
Survival Analysis
Description
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.
Copy Link
Link to current version
Version
Version
3.8-6
3.8-3
3.7-0
3.6-4
3.5-8
3.5-7
3.5-5
3.5-3
3.5-0
3.4-0
3.3-1
3.3-0
3.2-13
3.2-12
3.2-11
3.2-10
3.2-9
3.2-7
3.2-3
3.1-12
3.1-11
3.1-8
3.1-7
3.1-6
2.44-1.1
2.44-1
2.43-3
2.43-1
2.42-6
2.42-4
2.42-3
2.41-3
2.41-2
2.40-1
2.39-5
2.39-4
2.39-3
2.39-2
2.38-3
2.38-2
2.38-1
2.37-7
2.37-6
2.37-4
2.37-2
2.36-14
2.36-13
2.36-12
2.36-10
2.36-9
2.36-8
2.36-7
2.36-5
2.36-4
2.36-3
2.36-2
2.36-1
2.35-8
2.35-7
2.35-6
2.35-5
2.35-4
2.35-3
2.35-2
2.34-1
2.33
2.32
2.31
2.30
2.29
2.28
2.26
2.25
2.24
2.23
2.22
2.21
2.20
2.19
2.18
2.17
2.16
2.15
2.13-2
2.13-1
2.11-5
2.11-4
2.9-16
2.9-15
2.9-14
2.9-13
2.9-12
2.9-11
2.9-10
2.9-7
2.9-6
2.9-4
2.9-3
2.9-2
2.9-1
2.8-2
2.6
Install
install.packages('survival')
Monthly Downloads
152,873
Version
3.8-6
License
LGPL (>= 2)
Issues
26
Pull Requests
7
Stars
440
Forks
110
Repository
https://github.com/therneau/survival
Maintainer
Terry Therneau
Last Published
January 16th, 2026
Functions in survival (3.8-6)
Search all functions
cgd0
Chronic Granulotomous Disease data
concordance
Compute the concordance statistic for data or a model
concordancefit
Compute the concordance
colon
Chemotherapy for Stage B/C colon cancer
cluster
Identify clusters.
cox.zph
Test the Proportional Hazards Assumption of a Cox Regression
coxph.wtest
Compute a quadratic form
coxph.detail
Details of a Cox Model Fit
coxph.object
Proportional Hazards Regression Object
coxph.control
Ancillary arguments for controlling coxph fits
coxph
Fit Proportional Hazards Regression Model
finegray
Create data for a Fine-Gray model
gbsg
Breast cancer data sets used in Royston and Altman (2013)
levels.Surv
Return the states of a multi-state Surv object
coxsurv.fit
A direct interface to the `computational engine' of survfit.coxph
frailty
Random effects terms
hoel
Mouse cancer data
flchain
Assay of serum free light chain for 7874 subjects.
coxphms.object
Multi-state Proportional Hazards Regression Object
dsurvreg
Distributions available in survreg.
mgus
Monoclonal gammopathy data
diabetic
Ddiabetic retinopathy
heart
Stanford Heart Transplant data
kidney
Kidney catheter data
lung
NCCTG Lung Cancer Data
is.ratetable
Verify that an object is of class ratetable.
logLik.coxph
logLik method for a Cox model
logan
Data from the 1972-78 GSS data used by Logan
nostutter
Remove repeated events
nsk
Natural splines with knot heights as the basis.
ovarian
Ovarian Cancer Survival Data
lines.survfit
Add Lines or Points to a Survival Plot
mgus2
Monoclonal gammopathy data
nwtco
Data from the National Wilm's Tumor Study
lvcf
Last Value Carried Forward
model.frame.coxph
Model.frame method for coxph objects
model.matrix.coxph
Model.matrix method for coxph models
plot.aareg
Plot an aareg object.
print.aareg
Print an aareg object
nafld
Non-alcoholic fatty liver disease
predict.survreg
Predicted Values for a `survreg' Object
myeloma
Survival times of patients with multiple myeloma
myeloid
Acute myeloid leukemia
pbcseq
Mayo Clinic Primary Biliary Cirrhosis, sequential data
pbc
Mayo Clinic Primary Biliary Cholangitis Data
predict.coxph
Predictions for a Cox model
plot.survfit
Plot method for
survfit
objects
pseudo
Pseudo values for survival.
plot.cox.zph
Graphical Test of Proportional Hazards
pyears
Person Years
print.summary.coxph
Print method for summary.coxph objects
residuals.survfit
IJ residuals from a survfit object.
residuals.survreg
Compute Residuals for `survreg' Objects
quantile.survfit
Quantiles from a survfit object
print.survfit
Print a Short Summary of a Survival Curve
pspline
Smoothing splines using a pspline basis
ratetable
Allow ratetable() terms in a model
print.summary.survfit
Print Survfit Summary
neardate
Find the index of the closest value in data set 2, for each entry in data set one.
residuals.coxph
Calculate Residuals for a `coxph' Fit
reliability
Reliability data sets
ratetableDate
Convert date objects to ratetable form
ridge
Ridge regression
rotterdam
Breast cancer data set used in Royston and Altman (2013)
print.summary.survexp
Print Survexp Summary
summary.aareg
Summarize an aareg fit
solder
Data from a soldering experiment
summary.pyears
Summary function for pyears objecs
rhDNase
rhDNASE data set
rats
Rat treatment data from Mantel et al
rttright
Compute redistribute-to-the-right weights
summary.coxph
Summary method for Cox models
royston
Compute Royston's D for a Cox model
retinopathy
Diabetic Retinopathy
stanford2
More Stanford Heart Transplant data
rats2
Rat data from Gail et al.
survexp.fit
Compute Expected Survival
survexp.object
Expected Survival Curve Object
summary.survexp
Summary function for a survexp object
survdiff
Test Survival Curve Differences
summary.survfit
Summary of a Survival Curve
survfit.coxph
Compute a Survival Curve from a Cox model
survfit.formula
Compute a Survival Curve for Censored Data
survcondense
Shorten a (time1, time2) survival dataset
survcheck
Checks of a survival data set
survSplit
Split a survival data set at specified times
statefig
Draw a state space figure.
strata
Identify Stratification Variables
survreg
Regression for a Parametric Survival Model
survival-deprecated
Deprecated functions in package
survival
survfitcoxph.fit
A direct interface to the `computational engine' of survfit.coxph
ratetables
Census Data Sets for the Expected Survival and Person Years Functions
survfit_confint
Confidence intervals for survival curves
survfit0
Convert the format of a survfit object.
survexp
Compute Expected Survival
tobin
Tobin's Tobit data
tmerge
Time based merge for survival data
tcut
Factors for person-year calculations
timeline
Convert to/from a timeline data set format
survregDtest
Verify a survreg distribution
untangle.specials
Help Process the `specials' Argument of the `terms' Function.
survfit
Create survival curves
survobrien
O'Brien's Test for Association of a Single Variable with Survival
udca
Data from a trial of usrodeoxycholic acid
survfit.object
Survival Curve Object
survfit.matrix
Create Aalen-Johansen estimates of multi-state survival from a matrix of hazards.
survival-internal
Internal survival functions
uspop2
Projected US Population
vcov.coxph
Variance-covariance matrix
survreg.control
Package options for survreg and coxph
survreg.distributions
Parametric Survival Distributions
survreg.object
Parametric Survival Model Object
transplant
Liver transplant waiting list
veteran
Veterans' Administration Lung Cancer study
xtfrm.Surv
Sorting order for Surv objects
yates
Population prediction
yates_setup
Method for adding new models to the
yates
function.