Learn R Programming

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

survival (version 3.2-11)

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

100,052

Version

3.2-11

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 26th, 2021

Functions in survival (3.2-11)

Surv-methods

Methods for Surv objects
attrassign

Create new-style "assign" attribute
basehaz

Alias for the survfit function
coxph.wtest

Compute a quadratic form
cluster

Identify clusters.
coxph

Fit Proportional Hazards Regression Model
clogit

Conditional logistic regression
coxph.detail

Details of a Cox Model Fit
coxph.object

Proportional Hazards Regression Object
coxsurv.fit

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

Fits proportional hazards regression model to case-cohort data
cgd

Chronic Granulotamous Disease data
is.ratetable

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

Add Lines or Points to a Survival Plot
coxph.control

Ancillary arguments for controlling coxph fits
rats

Rat treatment data from Mantel et al
heart

Stanford Heart Transplant data
retinopathy

Diabetic Retinopathy
logLik.coxph

logLik method for a Cox model
lung

NCCTG Lung Cancer Data
logan

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

Bladder Cancer Recurrences
frailty

Random effects terms
survobrien

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

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

Monoclonal gammopathy data
diabetic

Ddiabetic retinopathy
predict.coxph

Predictions for a Cox model
nsk

Natural splines with knot heights as the basis.
nafld

Non-alcohol fatty liver disease
mgus2

Monoclonal gammopathy data
residuals.survfit

IJ residuals from a survfit object.
print.summary.coxph

Print method for summary.coxph objects
neardate

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

Predicted Values for a `survreg' Object
plot.survfit

Plot method for survfit objects
statefig

Draw a state space figure.
blogit

Bounded link functions
concordancefit

Compute the concordance
survfitcoxph.fit

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

Compute a Survival Curve for Censored Data
print.survfit

Print a Short Summary of a Survival Curve
cipoisson

Confidence limits for the Poisson
cgd0

Chronic Granulotomous Disease data
kidney

Kidney catheter data
finegray

Create data for a Fine-Gray model
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
survdiff

Test Survival Curve Differences
quantile.survfit

Quantiles from a survfit object
rats2

Rat data from Gail et al.
untangle.specials

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

Person Years
dsurvreg

Distributions available in survreg.
model.matrix.coxph

Model.matrix method for coxph models
ridge

Ridge regression
model.frame.coxph

Model.frame method for coxph objects
nwtco

Data from the National Wilm's Tumor Study
rotterdam

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

Ovarian Cancer Survival Data
survcheck

Checks of a survival data set
survreg

Regression for a Parametric Survival Model
survfit.coxph

Compute a Survival Curve from a Cox model
survfit

Create survival curves
summary.survfit

Summary of a Survival Curve
print.summary.survexp

Print Survexp Summary
colon

Chemotherapy for Stage B/C colon cancer
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
residuals.survreg

Compute Residuals for `survreg' Objects
stanford2

More Stanford Heart Transplant data
survreg.control

Package options for survreg and coxph
print.aareg

Print an aareg object
rhDNase

rhDNASE data set
strata

Identify Stratification Variables
pspline

Smoothing splines using a pspline basis
pseudo

Pseudo values for survival.
levels.Surv

Return the states of a multi-state Surv object
survival-internal

Internal survival functions
royston

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

Summary function for pyears objecs
survexp.object

Expected Survival Curve Object
myeloid

Acute myeloid leukemia
survSplit

Split a survival data set at specified times
summary.aareg

Summarize an aareg fit
summary.survexp

Summary function for a survexp object
summary.coxph

Summary method for Cox models
survregDtest

Verify a survreg distribution
yates_setup

Method for adding new models to the yates function.
survfit.matrix

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

Sorting order for Surv objects
tcut

Factors for person-year calculations
residuals.coxph

Calculate Residuals for a `coxph' Fit
yates

Population prediction
ratetables

Census Data Sets for the Expected Survival and Person Years Functions
plot.aareg

Plot an aareg object.
rttright

Compute redistribute-to-the-right weights
survfit.object

Survival Curve Object
flchain

Assay of serum free light chain for 7874 subjects.
tobin

Tobin's Tobit data
concordance

Compute the concordance statistic for data or a model
ratetableDate

Convert date objects to ratetable form
ratetable

Rate table structure
pbc

Mayo Clinic Primary Biliary Cholangitis Data
survfit0

Convert the format of a survfit object.
plot.cox.zph

Graphical Test of Proportional Hazards
solder

Data from a soldering experiment
survexp.fit

Compute Expected Survival
reliability

Reliability data sets
print.summary.survfit

Print Survfit Summary
survexp

Compute Expected Survival
survreg.distributions

Parametric Survival Distributions
udca

Data from a trial of usrodeoxycholic acid
uspop2

Projected US Population
survival-deprecated

Deprecated functions in package survival
tmerge

Time based merge for survival data
vcov.coxph

Variance-covariance matrix
transplant

Liver transplant waiting list
veteran

Veterans' Administration Lung Cancer study
survreg.object

Parametric Survival Model Object
Surv2data

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

Create a survival object
Surv

Create a Survival Object
aggregate.survfit

Average survival curves
anova.coxph

Analysis of Deviance for a Cox model.
aareg

Aalen's additive regression model for censored data
agreg.fit

Cox model fitting functions
aml

Acute Myelogenous Leukemia survival data
aeqSurv

Adjudicate near ties in a Surv object