Learn R Programming

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

survival (version 3.2-9)

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

116,731

Version

3.2-9

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Terry Therneau

Last Published

March 14th, 2021

Functions in survival (3.2-9)

aggregate.survfit

Average survival curves
aml

Acute Myelogenous Leukemia survival data
Surv

Create a Survival Object
anova.coxph

Analysis of Deviance for a Cox model.
cch

Fits proportional hazards regression model to case-cohort data
cgd

Chronic Granulotamous Disease data
agreg.fit

Cox model fitting functions
blogit

Bounded link functions
Surv2

Create a survival object
bladder

Bladder Cancer Recurrences
clogit

Conditional logistic regression
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
concordancefit

Compute the concordance
heart

Stanford Heart Transplant data
cluster

Identify clusters.
is.ratetable

Verify that an object is of class ratetable.
cgd0

Chronic Granulotomous Disease data
mgus

Monoclonal gammopathy data
diabetic

Ddiabetic retinopathy
myeloid

Acute myeloid leukemia
dsurvreg

Distributions available in survreg.
cipoisson

Confidence limits for the Poisson
coxph.wtest

Compute a quadratic form
nafld

Non-alcohol fatty liver disease
plot.survfit

Plot method for survfit objects
predict.coxph

Predictions for a Cox model
coxsurv.fit

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

Random effects terms
mgus2

Monoclonal gammopathy data
print.aareg

Print an aareg object
rhDNase

rhDNASE data set
retinopathy

Diabetic Retinopathy
predict.survreg

Predicted Values for a `survreg' Object
coxph.object

Proportional Hazards Regression Object
coxph.detail

Details of a Cox Model Fit
print.survfit

Print a Short Summary of a Survival Curve
residuals.survfit

IJ residuals from a survfit object.
print.summary.survfit

Print Survfit Summary
basehaz

Alias for the survfit function
Surv2data

Convert data from timecourse to (time1,time2) style
Surv-methods

Methods for Surv objects
residuals.survreg

Compute Residuals for `survreg' Objects
attrassign

Create new-style "assign" attribute
colon

Chemotherapy for Stage B/C colon cancer
gbsg

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

Kidney catheter data
aeqSurv

Adjudicate near ties in a Surv object
aareg

Aalen's additive regression model for censored data
levels.Surv

Return the states of a multi-state Surv object
concordance

Compute the concordance statistic for data or a model
statefig

Draw a state space figure.
summary.survexp

Summary function for a survexp object
finegray

Create data for a Fine-Gray model
summary.pyears

Summary function for pyears objecs
strata

Identify Stratification Variables
survreg.distributions

Parametric Survival Distributions
survreg.object

Parametric Survival Model Object
flchain

Assay of serum free light chain for 7874 subjects.
logLik.coxph

logLik method for a Cox model
lines.survfit

Add Lines or Points to a Survival Plot
survival-internal

Internal survival functions
plot.aareg

Plot an aareg object.
model.frame.coxph

Model.frame method for coxph objects
model.matrix.coxph

Model.matrix method for coxph models
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
print.summary.coxph

Print method for summary.coxph objects
pbc

Mayo Clinic Primary Biliary Cholangitis Data
neardate

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

Person Years
survobrien

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

Pseudo values for survival.
ridge

Ridge regression
nsk

Natural splines with knot heights as the basis.
quantile.survfit

Quantiles from a survfit object
plot.cox.zph

Graphical Test of Proportional Hazards
print.summary.survexp

Print Survexp Summary
survreg

Regression for a Parametric Survival Model
rotterdam

Breast cancer data set used in Royston and Altman (2013)
survreg.control

Package options for survreg and coxph
lung

NCCTG Lung Cancer Data
nwtco

Data from the National Wilm's Tumor Study
coxph.control

Ancillary arguments for controlling coxph fits
logan

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

Fit Proportional Hazards Regression Model
ratetable

Rate table structure
pspline

Smoothing splines using a pspline basis
ratetableDate

Convert date objects to ratetable form
ovarian

Ovarian Cancer Survival Data
survexp

Compute Expected Survival
survfitcoxph.fit

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

Compute Expected Survival
reliability

Reliability data sets
xtfrm.Surv

Sorting order for Surv objects
yates

Population prediction
survival-deprecated

Deprecated functions in package survival
survcheck

Checks of a survival data set
royston

Compute Royston's D for a Cox model
rttright

Compute redistribute-to-the-right weights
survdiff

Test Survival Curve Differences
survfit.object

Survival Curve Object
rats

Rat treatment data from Mantel et al
survregDtest

Verify a survreg distribution
residuals.coxph

Calculate Residuals for a `coxph' Fit
summary.aareg

Summarize an aareg fit
uspop2

Projected US Population
untangle.specials

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

Rat data from Gail et al.
tcut

Factors for person-year calculations
summary.survfit

Summary of a Survival Curve
summary.coxph

Summary method for Cox models
survfit0

Convert the format of a survfit object.
survexp.object

Expected Survival Curve Object
solder

Data from a soldering experiment
stanford2

More Stanford Heart Transplant data
ratetables

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

Create survival curves
survfit.coxph

Compute a Survival Curve from a Cox model
survSplit

Split a survival data set at specified times
transplant

Liver transplant waiting list
udca

Data from a trial of usrodeoxycholic acid
yates_setup

Method for adding new models to the yates function.
survfit.matrix

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

Compute a Survival Curve for Censored Data
tmerge

Time based merge for survival data
vcov.coxph

Variance-covariance matrix
veteran

Veterans' Administration Lung Cancer study
tobin

Tobin's Tobit data