Learn R Programming

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

survival (version 3.1-6)

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

173,894

Version

3.1-6

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Terry Therneau

Last Published

November 6th, 2019

Functions in survival (3.1-6)

Surv

Create a Survival Object
anova.coxph

Analysis of Deviance for a Cox model.
aareg

Aalen's additive regression model for censored data
basehaz

Alias for the survfit function
agreg.fit

Cox model fitting functions
bladder

Bladder Cancer Recurrences
Surv-methods

Methods for Surv objects
attrassign

Create new-style "assign" attribute
aml

Acute Myelogenous Leukemia survival data
aeqSurv

Adjudicate near ties in a Surv object
clogit

Conditional logistic regression
coxph.wtest

Compute a quadratic form
concordancefit

Compute the concordance
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
coxsurv.fit

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

Monoclonal gammopathy data
cipoisson

Confidence limits for the Poisson
lung

NCCTG Lung Cancer Data
cgd0

Chronic Granulotomous Disease data
colon

Chemotherapy for Stage B/C colon cancer
logLik.coxph

logLik method for a Cox model
logan

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

Ddiabetic retinopathy
dsurvreg

Distributions available in survreg.
finegray

Create data for a Fine-Gray model
nwtco

Data from the National Wilm's Tumor Study
mgus2

Monoclonal gammopathy data
concordance

Compute the concordance statistic for data or a model
print.summary.survfit

Print Survfit Summary
flchain

Assay of serum free light chain for 7874 subjects.
is.ratetable

Verify that an object is of class ratetable.
print.survfit

Print a Short Summary of a Survival Curve
cluster

Identify clusters.
model.frame.coxph

Model.frame method for coxph objects
retinopathy

Diabetic Retinopathy
cch

Fits proportional hazards regression model to case-cohort data
rhDNase

rhDNASE data set
cgd

Chronic Granulotamous Disease data
predict.survreg

Predicted Values for a `survreg' Object
print.aareg

Print an aareg object
plot.aareg

Plot an aareg object.
pbc

Mayo Clinic Primary Biliary Cirrhosis Data
plot.cox.zph

Graphical Test of Proportional Hazards
kidney

Kidney catheter data
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
ratetable

Rate table structure
quantile.survfit

Quantiles from a survfit object
residuals.coxph

Calculate Residuals for a `coxph' Fit
strata

Identify Stratification Variables
summary.aareg

Summarize an aareg fit
residuals.survreg

Compute Residuals for `survreg' Objects
rats2

Rat data from Gail et al.
coxph.detail

Details of a Cox Model Fit
ovarian

Ovarian Cancer Survival Data
coxph.object

Proportional Hazards Regression Object
survConcordance

Compute a concordance measure.
survexp.object

Expected Survival Curve Object
ridge

Ridge regression
solder

Data from a soldering experiment
reliability

Reliability data sets
frailty

Random effects terms
ratetables

Census Data Sets for the Expected Survival and Person Years Functions
coxph.control

Ancillary arguments for controlling coxph fits
coxph

Fit Proportional Hazards Regression Model
levels.Surv

Return the states of a multi-state Surv object
survobrien

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

Regression for a Parametric Survival Model
survcheck

Checks of a survival data set
heart

Stanford Heart Transplant data
survdiff

Test Survival Curve Differences
model.matrix.coxph

Model.matrix method for coxph models
survfit.object

Survival Curve Object
survfit0

Convert the format of a survfit object.
udca

Data from a trial of usrodeoxycholic acid
untangle.specials

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

Population prediction
myeloid

Acute myeloid leukemia
print.summary.coxph

Print method for summary.coxph objects
print.summary.survexp

Print Survexp Summary
survSplit

Split a survival data set at specified times
lines.survfit

Add Lines or Points to a Survival Plot
neardate

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

Plot method for survfit objects
nafld

Non-alcohol fatty liver disease
predict.coxph

Predictions for a Cox model
yates_setup

Method for adding new models to the yates function.
survreg.object

Parametric Survival Model Object
survregDtest

Verify a survreg distribution
pspline

Smoothing splines using a pspline basis
rats

Rat treatment data from Mantel et al
ratetableDate

Convert date objects to ratetable form
stanford2

More Stanford Heart Transplant data
statefig

Draw a state space figure.
tobin

Tobin's Tobit data
summary.survexp

Summary function for a survexp object
survfit.matrix

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

Compute a Survival Curve for Censored Data
pyears

Person Years
uspop2

Projected US Population
transplant

Liver transplant waiting list
vcov.coxph

Variance-covariance matrix
survreg.control

Package options for survreg and coxph
summary.pyears

Summary function for pyears objecs
summary.coxph

Summary method for Cox models
survexp

Compute Expected Survival
survreg.distributions

Parametric Survival Distributions
summary.survfit

Summary of a Survival Curve
survfitcoxph.fit

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

Compute Expected Survival
survival-internal

Internal survival functions
survfit

Create survival curves
survfit.coxph

Compute a Survival Curve from a Cox model
tcut

Factors for person-year calculations
veteran

Veterans' Administration Lung Cancer study
tmerge

Time based merge for survival data
xtfrm.Surv

Sorting order for Surv objects