Learn R Programming

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

survival (version 3.4-0)

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

Version

Install

install.packages('survival')

Monthly Downloads

98,782

Version

3.4-0

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Terry Therneau

Last Published

August 9th, 2022

Functions in survival (3.4-0)

aareg

Aalen's additive regression model for censored data
aggregate.survfit

Average survival curves
Surv

Create a Survival Object
Surv2

Create a survival object
aml

Acute Myelogenous Leukemia survival data
aeqSurv

Adjudicate near ties in a Surv object
Surv2data

Convert data from timecourse to (time1,time2) style
agreg.fit

Cox model fitting functions
Surv-methods

Methods for Surv objects
anova.coxph

Analysis of Deviance for a Cox model.
bladder

Bladder Cancer Recurrences
cgd0

Chronic Granulotomous Disease data
coxph.control

Ancillary arguments for controlling coxph fits
coxph

Fit Proportional Hazards Regression Model
blogit

Bounded link functions
coxph.detail

Details of a Cox Model Fit
cch

Fits proportional hazards regression model to case-cohort data
is.ratetable

Verify that an object is of class ratetable.
colon

Chemotherapy for Stage B/C colon cancer
coxph.object

Proportional Hazards Regression Object
kidney

Kidney catheter data
cgd

Chronic Granulotamous Disease data
model.matrix.coxph

Model.matrix method for coxph models
attrassign

Create new-style "assign" attribute
concordance

Compute the concordance statistic for data or a model
flchain

Assay of serum free light chain for 7874 subjects.
clogit

Conditional logistic regression
myeloid

Acute myeloid leukemia
coxphms.object

Multi-state Proportional Hazards Regression Object
coxsurv.fit

A direct interface to the `computational engine' of survfit.coxph
cluster

Identify clusters.
coxph.wtest

Compute a quadratic form
gbsg

Breast cancer data sets used in Royston and Altman (2013)
diabetic

Ddiabetic retinopathy
nsk

Natural splines with knot heights as the basis.
neardate

Find the index of the closest value in data set 2, for each entry in data set one.
lung

NCCTG Lung Cancer Data
logan

Data from the 1972-78 GSS data used by Logan
logLik.coxph

logLik method for a Cox model
heart

Stanford Heart Transplant data
basehaz

Alias for the survfit function
concordancefit

Compute the concordance
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
plot.aareg

Plot an aareg object.
mgus

Monoclonal gammopathy data
cipoisson

Confidence limits for the Poisson
frailty

Random effects terms
print.summary.coxph

Print method for summary.coxph objects
reliability

Reliability data sets
print.summary.survexp

Print Survexp Summary
finegray

Create data for a Fine-Gray model
dsurvreg

Distributions available in survreg.
predict.coxph

Predictions for a Cox model
rats

Rat treatment data from Mantel et al
rats2

Rat data from Gail et al.
plot.survfit

Plot method for survfit objects
myeloma

Survival times of patients with multiple myeloma
residuals.coxph

Calculate Residuals for a `coxph' Fit
solder

Data from a soldering experiment
mgus2

Monoclonal gammopathy data
plot.cox.zph

Graphical Test of Proportional Hazards
residuals.survfit

IJ residuals from a survfit object.
model.frame.coxph

Model.frame method for coxph objects
stanford2

More Stanford Heart Transplant data
lines.survfit

Add Lines or Points to a Survival Plot
residuals.survreg

Compute Residuals for `survreg' Objects
summary.pyears

Summary function for pyears objecs
pbc

Mayo Clinic Primary Biliary Cholangitis Data
levels.Surv

Return the states of a multi-state Surv object
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
summary.survexp

Summary function for a survexp object
print.summary.survfit

Print Survfit Summary
nafld

Non-alcohol fatty liver disease
survexp.object

Expected Survival Curve Object
survfit.formula

Compute a Survival Curve for Censored Data
survcheck

Checks of a survival data set
strata

Identify Stratification Variables
survdiff

Test Survival Curve Differences
statefig

Draw a state space figure.
tmerge

Time based merge for survival data
survregDtest

Verify a survreg distribution
survfit.coxph

Compute a Survival Curve from a Cox model
survfit

Create survival curves
ratetables

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

Data from the National Wilm's Tumor Study
veteran

Veterans' Administration Lung Cancer study
tcut

Factors for person-year calculations
tobin

Tobin's Tobit data
vcov.coxph

Variance-covariance matrix
ovarian

Ovarian Cancer Survival Data
survreg.control

Package options for survreg and coxph
predict.survreg

Predicted Values for a `survreg' Object
survfit.matrix

Create Aalen-Johansen estimates of multi-state survival from a matrix of hazards.
survreg

Regression for a Parametric Survival Model
print.aareg

Print an aareg object
xtfrm.Surv

Sorting order for Surv objects
quantile.survfit

Quantiles from a survfit object
yates

Population prediction
pyears

Person Years
ratetableDate

Convert date objects to ratetable form
print.survfit

Print a Short Summary of a Survival Curve
ratetable

Rate table structure
survexp

Compute Expected Survival
retinopathy

Diabetic Retinopathy
rttright

Compute redistribute-to-the-right weights
royston

Compute Royston's D for a Cox model
survexp.fit

Compute Expected Survival
rhDNase

rhDNASE data set
summary.survfit

Summary of a Survival Curve
survSplit

Split a survival data set at specified times
pspline

Smoothing splines using a pspline basis
pseudo

Pseudo values for survival.
yates_setup

Method for adding new models to the yates function.
uspop2

Projected US Population
survfitcoxph.fit

A direct interface to the `computational engine' of survfit.coxph
untangle.specials

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

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

Convert the format of a survfit object.
survfit.object

Survival Curve Object
survival-internal

Internal survival functions
ridge

Ridge regression
rotterdam

Breast cancer data set used in Royston and Altman (2013)
summary.aareg

Summarize an aareg fit
survival-deprecated

Deprecated functions in package survival
summary.coxph

Summary method for Cox models
survreg.distributions

Parametric Survival Distributions
survreg.object

Parametric Survival Model Object
udca

Data from a trial of usrodeoxycholic acid
transplant

Liver transplant waiting list