ciband: Add a confidence interval band to a KM curve

View source: R/ciband.r

cibandR Documentation

Add a confidence interval band to a KM curve

Description

Add a confidence interval band to a KM curve

Usage

ciband(obj, ...)

Arguments

obj

A survfit or survfitms object

...

Not used

Examples

library(survival)

fit <- survfit(Surv(time, status) ~ 1, veteran)
Plot(fit)
ciband(fit)

fit <- survfit(Surv(time, status) ~ celltype, veteran)
Plot(fit)
ciband(fit)


pbreheny/breheny documentation built on March 30, 2024, 7:37 p.m.