Learn R Programming

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

survival (version 3.5-7)

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

115,976

Version

3.5-7

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 14th, 2023

Functions in survival (3.5-7)

aggregate.survfit

Average survival curves
agreg.fit

Cox model fitting functions
aml

Acute Myelogenous Leukemia survival data
aareg

Aalen's additive regression model for censored data
Surv

Create a Survival Object
Surv2

Create a survival object
cgd

Chronic Granulotamous Disease data
attrassign

Create new-style "assign" attribute
anova.coxph

Analysis of Deviance for a Cox model.
brier

Compute the Brier score for a Cox model
cgd0

Chronic Granulotomous Disease data
blogit

Bounded link functions
bladder

Bladder Cancer Recurrences
coxph.object

Proportional Hazards Regression Object
aeqSurv

Adjudicate near ties in a Surv object
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
concordance

Compute the concordance statistic for data or a model
basehaz

Alias for the survfit function
Surv2data

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

Fit Proportional Hazards Regression Model
heart

Stanford Heart Transplant data
hoel

Mouse cancer data
frailty

Random effects terms
cch

Fits proportional hazards regression model to case-cohort data
gbsg

Breast cancer data sets used in Royston and Altman (2013)
levels.Surv

Return the states of a multi-state Surv object
logLik.coxph

logLik method for a Cox model
coxph.wtest

Compute a quadratic form
is.ratetable

Verify that an object is of class ratetable.
Surv-methods

Methods for Surv objects
concordancefit

Compute the concordance
diabetic

Ddiabetic retinopathy
cipoisson

Confidence limits for the Poisson
cluster

Identify clusters.
clogit

Conditional logistic regression
lines.survfit

Add Lines or Points to a Survival Plot
logan

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

Ancillary arguments for controlling coxph fits
colon

Chemotherapy for Stage B/C colon cancer
dsurvreg

Distributions available in survreg.
coxph.detail

Details of a Cox Model Fit
coxphms.object

Multi-state Proportional Hazards Regression Object
model.matrix.coxph

Model.matrix method for coxph models
finegray

Create data for a Fine-Gray model
neardate

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

NCCTG Lung Cancer Data
kidney

Kidney catheter data
nsk

Natural splines with knot heights as the basis.
coxsurv.fit

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

Monoclonal gammopathy data
pbc

Mayo Clinic Primary Biliary Cholangitis Data
pyears

Person Years
nwtco

Data from the National Wilm's Tumor Study
quantile.survfit

Quantiles from a survfit object
retinopathy

Diabetic Retinopathy
ovarian

Ovarian Cancer Survival Data
flchain

Assay of serum free light chain for 7874 subjects.
myeloid

Acute myeloid leukemia
mgus2

Monoclonal gammopathy data
pbcseq

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

Print method for summary.coxph objects
plot.aareg

Plot an aareg object.
model.frame.coxph

Model.frame method for coxph objects
myeloma

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

Print Survexp Summary
rhDNase

rhDNASE data set
pseudo

Pseudo values for survival.
nafld

Non-alcohol fatty liver disease
plot.cox.zph

Graphical Test of Proportional Hazards
pspline

Smoothing splines using a pspline basis
survdiff

Test Survival Curve Differences
predict.survreg

Predicted Values for a `survreg' Object
summary.aareg

Summarize an aareg fit
solder

Data from a soldering experiment
summary.coxph

Summary method for Cox models
print.summary.survfit

Print Survfit Summary
print.survfit

Print a Short Summary of a Survival Curve
print.aareg

Print an aareg object
ratetable

Allow ratetable() terms in a model
stanford2

More Stanford Heart Transplant data
survexp

Compute Expected Survival
survreg.control

Package options for survreg and coxph
ratetableDate

Convert date objects to ratetable form
survival-deprecated

Deprecated functions in package survival
survival-internal

Internal survival functions
residuals.survfit

IJ residuals from a survfit object.
survreg.distributions

Parametric Survival Distributions
tcut

Factors for person-year calculations
tobin

Tobin's Tobit data
residuals.survreg

Compute Residuals for `survreg' Objects
summary.pyears

Summary function for pyears objecs
transplant

Liver transplant waiting list
tmerge

Time based merge for survival data
plot.survfit

Plot method for survfit objects
predict.coxph

Predictions for a Cox model
reliability

Reliability data sets
rats

Rat treatment data from Mantel et al
summary.survexp

Summary function for a survexp object
survfit.coxph

Compute a Survival Curve from a Cox model
residuals.coxph

Calculate Residuals for a `coxph' Fit
royston

Compute Royston's D for a Cox model
rats2

Rat data from Gail et al.
survfit.formula

Compute a Survival Curve for Censored Data
survobrien

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

Draw a state space figure.
ridge

Ridge regression
rotterdam

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

Identify Stratification Variables
survcheck

Checks of a survival data set
survreg

Regression for a Parametric Survival Model
survfit.matrix

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

Veterans' Administration Lung Cancer study
survcondense

Shorten a (time1, time2) survival dataset
xtfrm.Surv

Sorting order for Surv objects
survfit.object

Survival Curve Object
rttright

Compute redistribute-to-the-right weights
yates

Population prediction
summary.survfit

Summary of a Survival Curve
survfit0

Convert the format of a survfit object.
survSplit

Split a survival data set at specified times
ratetables

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

Create survival curves
survfitcoxph.fit

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

Compute Expected Survival
survexp.object

Expected Survival Curve Object
survreg.object

Parametric Survival Model Object
yates_setup

Method for adding new models to the yates function.
survregDtest

Verify a survreg distribution
uspop2

Projected US Population
vcov.coxph

Variance-covariance matrix
udca

Data from a trial of usrodeoxycholic acid
untangle.specials

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