Learn R Programming

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

survival (version 3.5-8)

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

132,377

Version

3.5-8

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 14th, 2024

Functions in survival (3.5-8)

clogit

Conditional logistic regression
concordancefit

Compute the concordance
coxph.control

Ancillary arguments for controlling coxph fits
concordance

Compute the concordance statistic for data or a model
coxph.object

Proportional Hazards Regression Object
cluster

Identify clusters.
coxph.detail

Details of a Cox Model Fit
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
coxph.wtest

Compute a quadratic form
coxph

Fit Proportional Hazards Regression Model
hoel

Mouse cancer data
colon

Chemotherapy for Stage B/C colon cancer
finegray

Create data for a Fine-Gray model
coxsurv.fit

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

Random effects terms
coxphms.object

Multi-state Proportional Hazards Regression Object
diabetic

Ddiabetic retinopathy
heart

Stanford Heart Transplant data
dsurvreg

Distributions available in survreg.
kidney

Kidney catheter data
logan

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

Breast cancer data sets used in Royston and Altman (2013)
logLik.coxph

logLik method for a Cox model
mgus

Monoclonal gammopathy data
lung

NCCTG Lung Cancer Data
model.frame.coxph

Model.frame method for coxph objects
flchain

Assay of serum free light chain for 7874 subjects.
levels.Surv

Return the states of a multi-state Surv object
is.ratetable

Verify that an object is of class ratetable.
mgus2

Monoclonal gammopathy data
lines.survfit

Add Lines or Points to a Survival Plot
myeloid

Acute myeloid leukemia
nafld

Non-alcohol fatty liver disease
myeloma

Survival times of patients with multiple myeloma
pbc

Mayo Clinic Primary Biliary Cholangitis Data
model.matrix.coxph

Model.matrix method for coxph models
plot.aareg

Plot an aareg object.
ovarian

Ovarian Cancer Survival Data
print.summary.coxph

Print method for summary.coxph objects
print.aareg

Print an aareg object
nwtco

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

Print Survfit Summary
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
plot.cox.zph

Graphical Test of Proportional Hazards
plot.survfit

Plot method for survfit objects
print.summary.survexp

Print Survexp Summary
pspline

Smoothing splines using a pspline basis
nsk

Natural splines with knot heights as the basis.
pseudo

Pseudo values for survival.
rats2

Rat data from Gail et al.
neardate

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

rhDNASE data set
retinopathy

Diabetic Retinopathy
ratetableDate

Convert date objects to ratetable form
ratetable

Allow ratetable() terms in a model
print.survfit

Print a Short Summary of a Survival Curve
residuals.coxph

Calculate Residuals for a `coxph' Fit
residuals.survfit

IJ residuals from a survfit object.
rats

Rat treatment data from Mantel et al
residuals.survreg

Compute Residuals for `survreg' Objects
predict.coxph

Predictions for a Cox model
rotterdam

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

Ridge regression
reliability

Reliability data sets
pyears

Person Years
stanford2

More Stanford Heart Transplant data
royston

Compute Royston's D for a Cox model
summary.aareg

Summarize an aareg fit
quantile.survfit

Quantiles from a survfit object
predict.survreg

Predicted Values for a `survreg' Object
solder

Data from a soldering experiment
summary.survexp

Summary function for a survexp object
rttright

Compute redistribute-to-the-right weights
survSplit

Split a survival data set at specified times
summary.pyears

Summary function for pyears objecs
strata

Identify Stratification Variables
summary.survfit

Summary of a Survival Curve
statefig

Draw a state space figure.
summary.coxph

Summary method for Cox models
survfit.object

Survival Curve Object
survcheck

Checks of a survival data set
survfit.matrix

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

Compute a Survival Curve for Censored Data
survdiff

Test Survival Curve Differences
survcondense

Shorten a (time1, time2) survival dataset
survfit.coxph

Compute a Survival Curve from a Cox model
survobrien

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

Create survival curves
survexp

Compute Expected Survival
survival-deprecated

Deprecated functions in package survival
ratetables

Census Data Sets for the Expected Survival and Person Years Functions
survexp.object

Expected Survival Curve Object
survexp.fit

Compute Expected Survival
survreg

Regression for a Parametric Survival Model
survfit0

Convert the format of a survfit object.
survreg.control

Package options for survreg and coxph
survival-internal

Internal survival functions
survreg.object

Parametric Survival Model Object
survregDtest

Verify a survreg distribution
uspop2

Projected US Population
transplant

Liver transplant waiting list
udca

Data from a trial of usrodeoxycholic acid
tobin

Tobin's Tobit data
vcov.coxph

Variance-covariance matrix
untangle.specials

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

Factors for person-year calculations
survreg.distributions

Parametric Survival Distributions
survfitcoxph.fit

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

Population prediction
xtfrm.Surv

Sorting order for Surv objects
veteran

Veterans' Administration Lung Cancer study
tmerge

Time based merge for survival data
yates_setup

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

Analysis of Deviance for a Cox model.
cipoisson

Confidence limits for the Poisson
Surv-methods

Methods for Surv objects
aeqSurv

Adjudicate near ties in a Surv object
blogit

Bounded link functions
brier

Compute the Brier score for a Cox model
agreg.fit

Cox model fitting functions
cgd

Chronic Granulotamous Disease data
aareg

Aalen's additive regression model for censored data
attrassign

Create new-style "assign" attribute
basehaz

Alias for the survfit function
Surv2

Create a survival object
aml

Acute Myelogenous Leukemia survival data
aggregate.survfit

Average survival curves
cgd0

Chronic Granulotomous Disease data
Surv

Create a Survival Object
cch

Fits proportional hazards regression model to case-cohort data
bladder

Bladder Cancer Recurrences
Surv2data

Convert data from timecourse to (time1,time2) style