Learn R Programming

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

survival (version 3.5-5)

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.5-5

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

March 12th, 2023

Functions in survival (3.5-5)

agreg.fit

Cox model fitting functions
Surv2data

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

Acute Myelogenous Leukemia survival data
anova.coxph

Analysis of Deviance for a Cox model.
bladder

Bladder Cancer Recurrences
Surv

Create a Survival Object
Surv-methods

Methods for Surv objects
cch

Fits proportional hazards regression model to case-cohort data
attrassign

Create new-style "assign" attribute
cgd

Chronic Granulotamous Disease data
is.ratetable

Verify that an object is of class ratetable.
kidney

Kidney catheter data
colon

Chemotherapy for Stage B/C colon cancer
concordance

Compute the concordance statistic for data or a model
Surv2

Create a survival object
blogit

Bounded link functions
concordancefit

Compute the concordance
coxsurv.fit

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

Ddiabetic retinopathy
basehaz

Alias for the survfit function
coxph

Fit Proportional Hazards Regression Model
cox.zph

Test the Proportional Hazards Assumption of a Cox Regression
gbsg

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

Stanford Heart Transplant data
aareg

Aalen's additive regression model for censored data
clogit

Conditional logistic regression
coxph.control

Ancillary arguments for controlling coxph fits
model.matrix.coxph

Model.matrix method for coxph models
cluster

Identify clusters.
nwtco

Data from the National Wilm's Tumor Study
myeloid

Acute myeloid leukemia
flchain

Assay of serum free light chain for 7874 subjects.
frailty

Random effects terms
mgus2

Monoclonal gammopathy data
coxph.wtest

Compute a quadratic form
coxphms.object

Multi-state Proportional Hazards Regression Object
ovarian

Ovarian Cancer Survival Data
levels.Surv

Return the states of a multi-state Surv object
aeqSurv

Adjudicate near ties in a Surv object
cgd0

Chronic Granulotomous Disease data
lung

NCCTG Lung Cancer Data
survfit.coxph

Compute a Survival Curve from a Cox model
lines.survfit

Add Lines or Points to a Survival Plot
rats

Rat treatment data from Mantel et al
print.summary.coxph

Print method for summary.coxph objects
pbc

Mayo Clinic Primary Biliary Cholangitis Data
rats2

Rat data from Gail et al.
pbcseq

Mayo Clinic Primary Biliary Cirrhosis, sequential data
print.summary.survexp

Print Survexp Summary
mgus

Monoclonal gammopathy data
survfit.formula

Compute a Survival Curve for Censored Data
model.frame.coxph

Model.frame method for coxph objects
cipoisson

Confidence limits for the Poisson
survdiff

Test Survival Curve Differences
predict.coxph

Predictions for a Cox model
stanford2

More Stanford Heart Transplant data
plot.survfit

Plot method for survfit objects
solder

Data from a soldering experiment
print.survfit

Print a Short Summary of a Survival Curve
print.summary.survfit

Print Survfit Summary
tcut

Factors for person-year calculations
tmerge

Time based merge for survival data
residuals.survfit

IJ residuals from a survfit object.
retinopathy

Diabetic Retinopathy
residuals.survreg

Compute Residuals for `survreg' Objects
tobin

Tobin's Tobit data
transplant

Liver transplant waiting list
survexp

Compute Expected Survival
survfit0

Convert the format of a survfit object.
rhDNase

rhDNASE data set
survival-internal

Internal survival functions
summary.survexp

Summary function for a survexp object
survfit.object

Survival Curve Object
survfit.matrix

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

Calculate Residuals for a `coxph' Fit
summary.pyears

Summary function for pyears objecs
nsk

Natural splines with knot heights as the basis.
survival-deprecated

Deprecated functions in package survival
survfitcoxph.fit

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

Reliability data sets
neardate

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

Draw a state space figure.
strata

Identify Stratification Variables
coxph.detail

Details of a Cox Model Fit
coxph.object

Proportional Hazards Regression Object
plot.aareg

Plot an aareg object.
survcheck

Checks of a survival data set
survfit

Create survival curves
survcondense

Shorten a (time1, time2) survival dataset
survreg

Regression for a Parametric Survival Model
survobrien

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

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

Method for adding new models to the yates function.
yates

Population prediction
plot.cox.zph

Graphical Test of Proportional Hazards
udca

Data from a trial of usrodeoxycholic acid
survreg.distributions

Parametric Survival Distributions
survreg.control

Package options for survreg and coxph
untangle.specials

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

Distributions available in survreg.
finegray

Create data for a Fine-Gray model
logLik.coxph

logLik method for a Cox model
logan

Data from the 1972-78 GSS data used by Logan
predict.survreg

Predicted Values for a `survreg' Object
ratetable

Allow ratetable() terms in a model
print.aareg

Print an aareg object
myeloma

Survival times of patients with multiple myeloma
royston

Compute Royston's D for a Cox model
ratetableDate

Convert date objects to ratetable form
nafld

Non-alcohol fatty liver disease
rttright

Compute redistribute-to-the-right weights
vcov.coxph

Variance-covariance matrix
summary.survfit

Summary of a Survival Curve
uspop2

Projected US Population
survSplit

Split a survival data set at specified times
pspline

Smoothing splines using a pspline basis
pseudo

Pseudo values for survival.
pyears

Person Years
summary.aareg

Summarize an aareg fit
summary.coxph

Summary method for Cox models
ridge

Ridge regression
survexp.fit

Compute Expected Survival
quantile.survfit

Quantiles from a survfit object
rotterdam

Breast cancer data set used in Royston and Altman (2013)
survexp.object

Expected Survival Curve Object
survregDtest

Verify a survreg distribution
survreg.object

Parametric Survival Model Object
xtfrm.Surv

Sorting order for Surv objects
veteran

Veterans' Administration Lung Cancer study
aggregate.survfit

Average survival curves