modify.surv.fun {optband} | R Documentation |
Truncate survfit
object
Description
modify.surv.fun
truncates survfit
by upper and lower bounds.
Usage
modify.surv.fun(survi, tl, tu)
Arguments
survi |
a |
tl |
the lower bound. |
tu |
the upper bound. |
Value
A truncated survfit
object.
Examples
library(survival)
fit <- survfit(Surv(stop, event) ~ 1, data=bladder)
fit2 <- modify.surv.fun(fit, .1, .9)
[Package optband version 0.2.2 Index]