Truncate survfit object

Description

modify.surv.fun truncates survfit by upper and lower bounds.

Usage

1
modify.surv.fun(survi, tl, tu)

Arguments

survi

a survfit object.

tl

the lower bound.

tu

the upper bound.

Value

A truncated survfit object.

Examples

1
2
3
library(survival)
fit <- survfit(Surv(stop, event) ~ 1, data=bladder)
fit2 <- modify.surv.fun(fit, .1, .9)