Learn R Programming

⚠️There's a newer version (3.8-3) of this package.Take me there.

survival (version 2.8-2)

Survival analysis, including penalised likelihood.

Description

survival analysis: descriptive statistics, two-sample tests, parametric accelerated failure models, Cox model. Delayed entry (truncation) allowed for all models; interval censoring for parametric models.

Copy Link

Version

Install

install.packages('survival')

Monthly Downloads

173,894

Version

2.8-2

License

GPL2

Maintainer

Thomas Lumley

Last Published

January 16th, 2026

Functions in survival (2.8-2)

attrassign

Create new-style "assign" attribute
lines.survfit

Add Lines or Points to a Survival Plot
ovarian

Ovarian cancer survival data
survreg.control

Package options for survreg and coxph
clogit

Conditional logistic regression
heart

Stanford Heart Transplant data
mdy.date

Convert to Julian Dates
residuals.survreg

Compute Residuals for `survreg' Objects
predict.coxph

Predictions for Cox model
plot.survfit

Plot Method for `survfit'
print.survfit

Print a Short Summary of a Survival Curve
plot.cox.zph

Graphical Test of Proportional Hazards
survreg.distributions

Parametric Survival Distributions
frailty

(Approximate) Frailty models
pspline

Penalised smoothing splines
kidney

Kidney data from survival5
summary.survfit

Summary of a Survival Curve
colon

Chemotherapy for Stage B/C colon cancer
bladder

Bladder Cancer Recurrences
stanford2

More Stanford Heart Transplant data
survfit

Compute a Survival Curve for Censored Data
cluster

Identify Clusters
date.mmddyyyy

Format a Julian date
aml

Acute Myelogenous Leukemia survival data
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
survdiff

Test Survival Curve Differences
lung

Mayo Clinic Lung Cancer Data
date.object

Date Objects
tcut

Factors for person-year calculations
date.mdy

Convert from Julian Dates to Month, Day, and Year
pbc

Mayo Clinic Primary Biliary Cirrhosis Data
survreg

Regression for a Parametric Survival Model
untangle.specials

Help Process the `specials' Argument of the `terms' Function.
ridge

Ridge regression
survreg.object

Parametric Survival Model Object
survexp.fit

Work Function to Compute Expected Survival
Surv

Create a Survival Object
pyears

Person Years
survfit.object

Survival Curve Object
ratetables

Census Data Sets for the Expected Survival and Person Years Functions
survexp

Compute Expected Survival
rats

Rat data from survival5
survival-internal

Internal survival functions
date.mmddyy

Format a Julian date
strata

Identify Strata Variables
ratetable

Ratetable reference in formula
predict.survreg

Predicted Values for a `survreg' Object
as.date

Coerce Data to Dates
veteran

Veterans' Administration Lung Cancer study
is.ratetable

Verify that an Object is of Class `ratetable'
residuals.coxph

Calculate Residuals for a `coxph' Fit
coxph.detail

Details of a Cox Model Fit
survobrien

O'Brien's Test for Association of a Single Variable with Survival
coxph

Fit Proportional Hazards Regression Model
date.ddmmmyy

Format a Julian date
survreg.old

Old (survival4) Regression for a parametric survival model
coxph.object

Proportional Hazards Regression Object