Learn R Programming

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

survival (version 3.5-3)

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

126,015

Version

3.5-3

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 12th, 2023

Functions in survival (3.5-3)

blogit

Bounded link functions
cipoisson

Confidence limits for the Poisson
attrassign

Create new-style "assign" attribute
cluster

Identify clusters.
cgd0

Chronic Granulotomous Disease data
clogit

Conditional logistic regression
basehaz

Alias for the survfit function
cch

Fits proportional hazards regression model to case-cohort data
bladder

Bladder Cancer Recurrences
cgd

Chronic Granulotamous Disease data
concordancefit

Compute the concordance
coxph.detail

Details of a Cox Model Fit
colon

Chemotherapy for Stage B/C colon cancer
coxph.control

Ancillary arguments for controlling coxph fits
coxph.wtest

Compute a quadratic form
coxph.object

Proportional Hazards Regression Object
coxphms.object

Multi-state Proportional Hazards Regression Object
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
coxph

Fit Proportional Hazards Regression Model
concordance

Compute the concordance statistic for data or a model
heart

Stanford Heart Transplant data
flchain

Assay of serum free light chain for 7874 subjects.
gbsg

Breast cancer data sets used in Royston and Altman (2013)
is.ratetable

Verify that an object is of class ratetable.
coxsurv.fit

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

Kidney catheter data
frailty

Random effects terms
dsurvreg

Distributions available in survreg.
finegray

Create data for a Fine-Gray model
diabetic

Ddiabetic retinopathy
lung

NCCTG Lung Cancer Data
model.matrix.coxph

Model.matrix method for coxph models
logLik.coxph

logLik method for a Cox model
model.frame.coxph

Model.frame method for coxph objects
myeloid

Acute myeloid leukemia
logan

Data from the 1972-78 GSS data used by Logan
levels.Surv

Return the states of a multi-state Surv object
lines.survfit

Add Lines or Points to a Survival Plot
mgus2

Monoclonal gammopathy data
plot.aareg

Plot an aareg object.
mgus

Monoclonal gammopathy data
nafld

Non-alcohol fatty liver disease
nsk

Natural splines with knot heights as the basis.
nwtco

Data from the National Wilm's Tumor Study
myeloma

Survival times of patients with multiple myeloma
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
pbc

Mayo Clinic Primary Biliary Cholangitis Data
ovarian

Ovarian Cancer Survival Data
neardate

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

Graphical Test of Proportional Hazards
pseudo

Pseudo values for survival.
print.summary.coxph

Print method for summary.coxph objects
predict.survreg

Predicted Values for a `survreg' Object
pspline

Smoothing splines using a pspline basis
print.summary.survexp

Print Survexp Summary
print.survfit

Print a Short Summary of a Survival Curve
plot.survfit

Plot method for survfit objects
predict.coxph

Predictions for a Cox model
print.summary.survfit

Print Survfit Summary
print.aareg

Print an aareg object
ratetableDate

Convert date objects to ratetable form
residuals.survfit

IJ residuals from a survfit object.
reliability

Reliability data sets
residuals.coxph

Calculate Residuals for a `coxph' Fit
quantile.survfit

Quantiles from a survfit object
pyears

Person Years
ratetable

Allow ratetable() terms in a model
rats2

Rat data from Gail et al.
rats

Rat treatment data from Mantel et al
residuals.survreg

Compute Residuals for `survreg' Objects
strata

Identify Stratification Variables
retinopathy

Diabetic Retinopathy
rttright

Compute redistribute-to-the-right weights
rotterdam

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

Data from a soldering experiment
rhDNase

rhDNASE data set
stanford2

More Stanford Heart Transplant data
royston

Compute Royston's D for a Cox model
statefig

Draw a state space figure.
ridge

Ridge regression
survcheck

Checks of a survival data set
summary.survexp

Summary function for a survexp object
summary.coxph

Summary method for Cox models
survdiff

Test Survival Curve Differences
summary.aareg

Summarize an aareg fit
survcondense

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

Summary of a Survival Curve
summary.pyears

Summary function for pyears objecs
survexp

Compute Expected Survival
survSplit

Split a survival data set at specified times
survexp.object

Expected Survival Curve Object
survfit

Create survival curves
survfit.coxph

Compute a Survival Curve from a Cox model
survfit.matrix

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

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

Compute a Survival Curve for Censored Data
survexp.fit

Compute Expected Survival
survfit0

Convert the format of a survfit object.
survfit.object

Survival Curve Object
ratetables

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

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

Regression for a Parametric Survival Model
tcut

Factors for person-year calculations
survreg.control

Package options for survreg and coxph
survival-internal

Internal survival functions
survregDtest

Verify a survreg distribution
tmerge

Time based merge for survival data
survreg.object

Parametric Survival Model Object
survival-deprecated

Deprecated functions in package survival
survreg.distributions

Parametric Survival Distributions
untangle.specials

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

Liver transplant waiting list
xtfrm.Surv

Sorting order for Surv objects
tobin

Tobin's Tobit data
vcov.coxph

Variance-covariance matrix
uspop2

Projected US Population
udca

Data from a trial of usrodeoxycholic acid
veteran

Veterans' Administration Lung Cancer study
yates_setup

Method for adding new models to the yates function.
yates

Population prediction
anova.coxph

Analysis of Deviance for a Cox model.
aml

Acute Myelogenous Leukemia survival data
aareg

Aalen's additive regression model for censored data
Surv2data

Convert data from timecourse to (time1,time2) style
agreg.fit

Cox model fitting functions
Surv-methods

Methods for Surv objects
Surv2

Create a survival object
Surv

Create a Survival Object
aeqSurv

Adjudicate near ties in a Surv object
aggregate.survfit

Average survival curves