Learn R Programming

survival (version 3.8-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

100,052

Version

3.8-3

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 17th, 2024

Functions in survival (3.8-3)

attrassign

Create new-style "assign" attribute
basehaz

Alias for the survfit function
agreg.fit

Cox model fitting functions
aeqSurv

Adjudicate near ties in a Surv object
brier

Compute the Brier score for a Cox model
Surv2

Create a survival object
Surv2data

Convert data from timecourse to (time1,time2) style
aggregate.survfit

Average survival curves
aml

Acute Myelogenous Leukemia survival data
frailty

Random effects terms
aareg

Aalen's additive regression model for censored data
cch

Fits proportional hazards regression model to case-cohort data
bladder

Bladder Cancer Recurrences
blogit

Bounded link functions
anova.coxph

Analysis of Deviance for a Cox model.
gbsg

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

Ancillary arguments for controlling coxph fits
cgd0

Chronic Granulotomous Disease data
Surv-methods

Methods for Surv objects
cgd

Chronic Granulotamous Disease data
cox.zph

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

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

Fit Proportional Hazards Regression Model
coxphms.object

Multi-state Proportional Hazards Regression Object
plot.aareg

Plot an aareg object.
nwtco

Data from the National Wilm's Tumor Study
kidney

Kidney catheter data
colon

Chemotherapy for Stage B/C colon cancer
plot.cox.zph

Graphical Test of Proportional Hazards
cluster

Identify clusters.
ovarian

Ovarian Cancer Survival Data
reliability

Reliability data sets
print.survfit

Print a Short Summary of a Survival Curve
levels.Surv

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

Compute a quadratic form
coxph.object

Proportional Hazards Regression Object
print.summary.survfit

Print Survfit Summary
is.ratetable

Verify that an object is of class ratetable.
residuals.coxph

Calculate Residuals for a `coxph' Fit
nsk

Natural splines with knot heights as the basis.
cipoisson

Confidence limits for the Poisson
neardate

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

Compute the concordance
coxph.detail

Details of a Cox Model Fit
ratetable

Allow ratetable() terms in a model
ratetableDate

Convert date objects to ratetable form
finegray

Create data for a Fine-Gray model
concordance

Compute the concordance statistic for data or a model
clogit

Conditional logistic regression
diabetic

Ddiabetic retinopathy
flchain

Assay of serum free light chain for 7874 subjects.
mgus2

Monoclonal gammopathy data
dsurvreg

Distributions available in survreg.
residuals.survfit

IJ residuals from a survfit object.
print.aareg

Print an aareg object
logLik.coxph

logLik method for a Cox model
quantile.survfit

Quantiles from a survfit object
lines.survfit

Add Lines or Points to a Survival Plot
predict.survreg

Predicted Values for a `survreg' Object
pyears

Person Years
retinopathy

Diabetic Retinopathy
pbc

Mayo Clinic Primary Biliary Cholangitis Data
logan

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

Mayo Clinic Primary Biliary Cirrhosis, sequential data
residuals.survreg

Compute Residuals for `survreg' Objects
heart

Stanford Heart Transplant data
print.summary.coxph

Print method for summary.coxph objects
model.frame.coxph

Model.frame method for coxph objects
summary.pyears

Summary function for pyears objecs
model.matrix.coxph

Model.matrix method for coxph models
survcheck

Checks of a survival data set
rhDNase

rhDNASE data set
print.summary.survexp

Print Survexp Summary
survcondense

Shorten a (time1, time2) survival dataset
myeloid

Acute myeloid leukemia
survfit.object

Survival Curve Object
survfit

Create survival curves
summary.coxph

Summary method for Cox models
summary.aareg

Summarize an aareg fit
survfit.matrix

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

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

Survival times of patients with multiple myeloma
hoel

Mouse cancer data
nafld

Non-alcoholic fatty liver disease
survival-deprecated

Deprecated functions in package survival
lung

NCCTG Lung Cancer Data
predict.coxph

Predictions for a Cox model
rats

Rat treatment data from Mantel et al
plot.survfit

Plot method for survfit objects
mgus

Monoclonal gammopathy data
survival-internal

Internal survival functions
royston

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

Summary function for a survexp object
rotterdam

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

Ridge regression
rats2

Rat data from Gail et al.
survreg.distributions

Parametric Survival Distributions
rttright

Compute redistribute-to-the-right weights
untangle.specials

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

Pseudo values for survival.
survreg.control

Package options for survreg and coxph
pspline

Smoothing splines using a pspline basis
solder

Data from a soldering experiment
transplant

Liver transplant waiting list
stanford2

More Stanford Heart Transplant data
survexp

Compute Expected Survival
udca

Data from a trial of usrodeoxycholic acid
survdiff

Test Survival Curve Differences
strata

Identify Stratification Variables
survobrien

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

Draw a state space figure.
survfitcoxph.fit

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

Convert the format of a survfit object.
tcut

Factors for person-year calculations
survexp.fit

Compute Expected Survival
uspop2

Projected US Population
survreg

Regression for a Parametric Survival Model
xtfrm.Surv

Sorting order for Surv objects
yates

Population prediction
tmerge

Time based merge for survival data
timeline

Convert to/from a timeline data set format
tobin

Tobin's Tobit data
yates_setup

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

Expected Survival Curve Object
survSplit

Split a survival data set at specified times
survfit.coxph

Compute a Survival Curve from a Cox model
summary.survfit

Summary of a Survival Curve
survregDtest

Verify a survreg distribution
survreg.object

Parametric Survival Model Object
veteran

Veterans' Administration Lung Cancer study
vcov.coxph

Variance-covariance matrix
survfit.formula

Compute a Survival Curve for Censored Data
Surv

Create a Survival Object