Learn R Programming

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

survival (version 3.2-10)

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

73,883

Version

3.2-10

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Terry Therneau

Last Published

March 16th, 2021

Functions in survival (3.2-10)

Surv-methods

Methods for Surv objects
aml

Acute Myelogenous Leukemia survival data
Surv

Create a Survival Object
agreg.fit

Cox model fitting functions
aareg

Aalen's additive regression model for censored data
aeqSurv

Adjudicate near ties in a Surv object
aggregate.survfit

Average survival curves
anova.coxph

Analysis of Deviance for a Cox model.
Surv2

Create a survival object
Surv2data

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

Bladder Cancer Recurrences
attrassign

Create new-style "assign" attribute
cch

Fits proportional hazards regression model to case-cohort data
cgd

Chronic Granulotamous Disease data
cluster

Identify clusters.
clogit

Conditional logistic regression
coxph.object

Proportional Hazards Regression Object
coxph.detail

Details of a Cox Model Fit
coxph

Fit Proportional Hazards Regression Model
coxph.control

Ancillary arguments for controlling coxph fits
flchain

Assay of serum free light chain for 7874 subjects.
finegray

Create data for a Fine-Gray model
coxsurv.fit

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

Alias for the survfit function
coxph.wtest

Compute a quadratic form
frailty

Random effects terms
cgd0

Chronic Granulotomous Disease data
blogit

Bounded link functions
logLik.coxph

logLik method for a Cox model
concordance

Compute the concordance statistic for data or a model
lines.survfit

Add Lines or Points to a Survival Plot
colon

Chemotherapy for Stage B/C colon cancer
gbsg

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

Monoclonal gammopathy data
mgus

Monoclonal gammopathy data
dsurvreg

Distributions available in survreg.
diabetic

Ddiabetic retinopathy
heart

Stanford Heart Transplant data
levels.Surv

Return the states of a multi-state Surv object
cipoisson

Confidence limits for the Poisson
concordancefit

Compute the concordance
kidney

Kidney catheter data
model.frame.coxph

Model.frame method for coxph objects
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
model.matrix.coxph

Model.matrix method for coxph models
plot.aareg

Plot an aareg object.
is.ratetable

Verify that an object is of class ratetable.
logan

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

NCCTG Lung Cancer Data
print.summary.survfit

Print Survfit Summary
nwtco

Data from the National Wilm's Tumor Study
nafld

Non-alcohol fatty liver disease
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
myeloid

Acute myeloid leukemia
pbc

Mayo Clinic Primary Biliary Cholangitis Data
plot.survfit

Plot method for survfit objects
print.summary.coxph

Print method for summary.coxph objects
plot.cox.zph

Graphical Test of Proportional Hazards
print.summary.survexp

Print Survexp Summary
predict.coxph

Predictions for a Cox model
ovarian

Ovarian Cancer Survival Data
residuals.coxph

Calculate Residuals for a `coxph' Fit
pyears

Person Years
predict.survreg

Predicted Values for a `survreg' Object
print.survfit

Print a Short Summary of a Survival Curve
reliability

Reliability data sets
rats

Rat treatment data from Mantel et al
solder

Data from a soldering experiment
print.aareg

Print an aareg object
rats2

Rat data from Gail et al.
quantile.survfit

Quantiles from a survfit object
neardate

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

Expected Survival Curve Object
ratetables

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

More Stanford Heart Transplant data
summary.coxph

Summary method for Cox models
survexp.fit

Compute Expected Survival
survexp

Compute Expected Survival
summary.aareg

Summarize an aareg fit
ratetableDate

Convert date objects to ratetable form
ratetable

Rate table structure
residuals.survfit

IJ residuals from a survfit object.
statefig

Draw a state space figure.
residuals.survreg

Compute Residuals for `survreg' Objects
strata

Identify Stratification Variables
royston

Compute Royston's D for a Cox model
rttright

Compute redistribute-to-the-right weights
nsk

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

Summary of a Survival Curve
survfit.object

Survival Curve Object
survfit0

Convert the format of a survfit object.
survSplit

Split a survival data set at specified times
pseudo

Pseudo values for survival.
survfit.formula

Compute a Survival Curve for Censored Data
survfit

Create survival curves
summary.pyears

Summary function for pyears objecs
pspline

Smoothing splines using a pspline basis
survfitcoxph.fit

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

Summary function for a survexp object
tmerge

Time based merge for survival data
tobin

Tobin's Tobit data
retinopathy

Diabetic Retinopathy
tcut

Factors for person-year calculations
survfit.coxph

Compute a Survival Curve from a Cox model
uspop2

Projected US Population
untangle.specials

Help Process the `specials' Argument of the `terms' Function.
survival-deprecated

Deprecated functions in package survival
rhDNase

rhDNASE data set
survreg

Regression for a Parametric Survival Model
survregDtest

Verify a survreg distribution
survfit.matrix

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

Ridge regression
rotterdam

Breast cancer data set used in Royston and Altman (2013)
survdiff

Test Survival Curve Differences
survival-internal

Internal survival functions
survreg.control

Package options for survreg and coxph
survcheck

Checks of a survival data set
transplant

Liver transplant waiting list
survreg.object

Parametric Survival Model Object
survreg.distributions

Parametric Survival Distributions
yates_setup

Method for adding new models to the yates function.
vcov.coxph

Variance-covariance matrix
veteran

Veterans' Administration Lung Cancer study
udca

Data from a trial of usrodeoxycholic acid
survobrien

O'Brien's Test for Association of a Single Variable with Survival
xtfrm.Surv

Sorting order for Surv objects
yates

Population prediction