Skip to contents

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)