Learn R Programming

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

survival (version 3.2-13)

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.2-13

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Terry Therneau

Last Published

August 24th, 2021

Functions in survival (3.2-13)

Surv2data

Convert data from timecourse to (time1,time2) style
aml

Acute Myelogenous Leukemia survival data
Surv

Create a Survival Object
aareg

Aalen's additive regression model for censored data
Surv2

Create a survival object
agreg.fit

Cox model fitting functions
aeqSurv

Adjudicate near ties in a Surv object
aggregate.survfit

Average survival curves
anova.coxph

Analysis of Deviance for a Cox model.
Surv-methods

Methods for Surv objects
basehaz

Alias for the survfit function
attrassign

Create new-style "assign" attribute
cgd0

Chronic Granulotomous Disease data
clogit

Conditional logistic regression
cluster

Identify clusters.
coxph.control

Ancillary arguments for controlling coxph fits
cgd

Chronic Granulotamous Disease data
concordancefit

Compute the concordance
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
cch

Fits proportional hazards regression model to case-cohort data
coxph

Fit Proportional Hazards Regression Model
diabetic

Ddiabetic retinopathy
cipoisson

Confidence limits for the Poisson
kidney

Kidney catheter data
dsurvreg

Distributions available in survreg.
coxph.object

Proportional Hazards Regression Object
logan

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

Details of a Cox Model Fit
bladder

Bladder Cancer Recurrences
gbsg

Breast cancer data sets used in Royston and Altman (2013)
coxsurv.fit

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

Model.frame method for coxph objects
frailty

Random effects terms
coxph.wtest

Compute a quadratic form
lines.survfit

Add Lines or Points to a Survival Plot
levels.Surv

Return the states of a multi-state Surv object
nafld

Non-alcohol fatty liver disease
logLik.coxph

logLik method for a Cox model
model.matrix.coxph

Model.matrix method for coxph models
neardate

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

Bounded link functions
colon

Chemotherapy for Stage B/C colon cancer
plot.cox.zph

Graphical Test of Proportional Hazards
plot.survfit

Plot method for survfit objects
finegray

Create data for a Fine-Gray model
flchain

Assay of serum free light chain for 7874 subjects.
concordance

Compute the concordance statistic for data or a model
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
print.survfit

Print a Short Summary of a Survival Curve
pbc

Mayo Clinic Primary Biliary Cholangitis Data
mgus

Monoclonal gammopathy data
is.ratetable

Verify that an object is of class ratetable.
myeloid

Acute myeloid leukemia
plot.aareg

Plot an aareg object.
heart

Stanford Heart Transplant data
lung

NCCTG Lung Cancer Data
myeloma

Survival times of patients with multiple myeloma
print.summary.survexp

Print Survexp Summary
mgus2

Monoclonal gammopathy data
predict.survreg

Predicted Values for a `survreg' Object
quantile.survfit

Quantiles from a survfit object
predict.coxph

Predictions for a Cox model
pspline

Smoothing splines using a pspline basis
rhDNase

rhDNASE data set
pyears

Person Years
ratetable

Rate table structure
survexp.fit

Compute Expected Survival
ridge

Ridge regression
rats2

Rat data from Gail et al.
reliability

Reliability data sets
royston

Compute Royston's D for a Cox model
pseudo

Pseudo values for survival.
summary.coxph

Summary method for Cox models
ovarian

Ovarian Cancer Survival Data
rotterdam

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

Summarize an aareg fit
retinopathy

Diabetic Retinopathy
summary.pyears

Summary function for pyears objecs
residuals.survreg

Compute Residuals for `survreg' Objects
strata

Identify Stratification Variables
survfit0

Convert the format of a survfit object.
survexp.object

Expected Survival Curve Object
statefig

Draw a state space figure.
survfit

Create survival curves
survival-deprecated

Deprecated functions in package survival
ratetables

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

Population prediction
stanford2

More Stanford Heart Transplant data
survreg

Regression for a Parametric Survival Model
nsk

Natural splines with knot heights as the basis.
survobrien

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

Data from a soldering experiment
survfitcoxph.fit

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

Package options for survreg and coxph
residuals.survfit

IJ residuals from a survfit object.
nwtco

Data from the National Wilm's Tumor Study
print.summary.survfit

Print Survfit Summary
residuals.coxph

Calculate Residuals for a `coxph' Fit
survreg.distributions

Parametric Survival Distributions
survdiff

Test Survival Curve Differences
survexp

Compute Expected Survival
survival-internal

Internal survival functions
untangle.specials

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

Data from a trial of usrodeoxycholic acid
survreg.object

Parametric Survival Model Object
survSplit

Split a survival data set at specified times
tcut

Factors for person-year calculations
survfit.matrix

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

Checks of a survival data set
survregDtest

Verify a survreg distribution
tmerge

Time based merge for survival data
yates_setup

Method for adding new models to the yates function.
uspop2

Projected US Population
vcov.coxph

Variance-covariance matrix
survfit.object

Survival Curve Object
print.summary.coxph

Print method for summary.coxph objects
ratetableDate

Convert date objects to ratetable form
rats

Rat treatment data from Mantel et al
print.aareg

Print an aareg object
rttright

Compute redistribute-to-the-right weights
survfit.coxph

Compute a Survival Curve from a Cox model
survfit.formula

Compute a Survival Curve for Censored Data
summary.survexp

Summary function for a survexp object
transplant

Liver transplant waiting list
summary.survfit

Summary of a Survival Curve
veteran

Veterans' Administration Lung Cancer study
tobin

Tobin's Tobit data
xtfrm.Surv

Sorting order for Surv objects