Learn R Programming

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

survival (version 3.3-1)

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.3-1

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

March 3rd, 2022

Functions in survival (3.3-1)

aeqSurv

Adjudicate near ties in a Surv object
Surv2data

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

Cox model fitting functions
aggregate.survfit

Average survival curves
aareg

Aalen's additive regression model for censored data
Surv-methods

Methods for Surv objects
Surv2

Create a survival object
aml

Acute Myelogenous Leukemia survival data
Surv

Create a Survival Object
anova.coxph

Analysis of Deviance for a Cox model.
clogit

Conditional logistic regression
cgd0

Chronic Granulotomous Disease data
cgd

Chronic Granulotamous Disease data
cch

Fits proportional hazards regression model to case-cohort data
colon

Chemotherapy for Stage B/C colon cancer
dsurvreg

Distributions available in survreg.
concordance

Compute the concordance statistic for data or a model
cipoisson

Confidence limits for the Poisson
finegray

Create data for a Fine-Gray model
coxph.wtest

Compute a quadratic form
diabetic

Ddiabetic retinopathy
attrassign

Create new-style "assign" attribute
basehaz

Alias for the survfit function
flchain

Assay of serum free light chain for 7874 subjects.
coxsurv.fit

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

Acute myeloid leukemia
model.frame.coxph

Model.frame method for coxph objects
myeloma

Survival times of patients with multiple myeloma
ovarian

Ovarian Cancer Survival Data
pbc

Mayo Clinic Primary Biliary Cholangitis Data
model.matrix.coxph

Model.matrix method for coxph models
coxph.object

Proportional Hazards Regression Object
cluster

Identify clusters.
coxph.detail

Details of a Cox Model Fit
kidney

Kidney catheter data
levels.Surv

Return the states of a multi-state Surv object
coxph

Fit Proportional Hazards Regression Model
nafld

Non-alcohol fatty liver disease
coxph.control

Ancillary arguments for controlling coxph fits
plot.cox.zph

Graphical Test of Proportional Hazards
mgus2

Monoclonal gammopathy data
mgus

Monoclonal gammopathy data
frailty

Random effects terms
print.summary.survexp

Print Survexp Summary
logan

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

NCCTG Lung Cancer Data
gbsg

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

Data from the National Wilm's Tumor Study
nsk

Natural splines with knot heights as the basis.
pspline

Smoothing splines using a pspline basis
print.summary.survfit

Print Survfit Summary
neardate

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

Convert date objects to ratetable form
rats

Rat treatment data from Mantel et al
pyears

Person Years
plot.survfit

Plot method for survfit objects
stanford2

More Stanford Heart Transplant data
blogit

Bounded link functions
predict.coxph

Predictions for a Cox model
predict.survreg

Predicted Values for a `survreg' Object
concordancefit

Compute the concordance
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
bladder

Bladder Cancer Recurrences
statefig

Draw a state space figure.
summary.survexp

Summary function for a survexp object
print.survfit

Print a Short Summary of a Survival Curve
rats2

Rat data from Gail et al.
survexp.fit

Compute Expected Survival
survexp.object

Expected Survival Curve Object
ratetable

Rate table structure
quantile.survfit

Quantiles from a survfit object
heart

Stanford Heart Transplant data
ratetables

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

Calculate Residuals for a `coxph' Fit
pseudo

Pseudo values for survival.
retinopathy

Diabetic Retinopathy
residuals.survreg

Compute Residuals for `survreg' Objects
summary.survfit

Summary of a Survival Curve
tcut

Factors for person-year calculations
is.ratetable

Verify that an object is of class ratetable.
tmerge

Time based merge for survival data
lines.survfit

Add Lines or Points to a Survival Plot
rttright

Compute redistribute-to-the-right weights
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
logLik.coxph

logLik method for a Cox model
survfit

Create survival curves
survfit.formula

Compute a Survival Curve for Censored Data
survobrien

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

Reliability data sets
survfit.coxph

Compute a Survival Curve from a Cox model
solder

Data from a soldering experiment
rotterdam

Breast cancer data set used in Royston and Altman (2013)
residuals.survfit

IJ residuals from a survfit object.
survreg

Regression for a Parametric Survival Model
summary.coxph

Summary method for Cox models
yates

Population prediction
survival-deprecated

Deprecated functions in package survival
royston

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

Summary function for pyears objecs
survival-internal

Internal survival functions
plot.aareg

Plot an aareg object.
yates_setup

Method for adding new models to the yates function.
print.summary.coxph

Print method for summary.coxph objects
rhDNase

rhDNASE data set
print.aareg

Print an aareg object
strata

Identify Stratification Variables
ridge

Ridge regression
survregDtest

Verify a survreg distribution
uspop2

Projected US Population
survreg.object

Parametric Survival Model Object
udca

Data from a trial of usrodeoxycholic acid
survdiff

Test Survival Curve Differences
untangle.specials

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

Compute Expected Survival
survfit.matrix

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

Summarize an aareg fit
survSplit

Split a survival data set at specified times
survreg.control

Package options for survreg and coxph
survfit.object

Survival Curve Object
survreg.distributions

Parametric Survival Distributions
survcheck

Checks of a survival data set
vcov.coxph

Variance-covariance matrix
survfit0

Convert the format of a survfit object.
survfitcoxph.fit

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

Tobin's Tobit data
veteran

Veterans' Administration Lung Cancer study
xtfrm.Surv

Sorting order for Surv objects
transplant

Liver transplant waiting list