View source: R/package_functions.R
modify.surv.fun | R Documentation |
survfit
objectmodify.surv.fun
truncates survfit
by upper and lower bounds.
modify.surv.fun(survi, tl, tu)
survi |
a |
tl |
the lower bound. |
tu |
the upper bound. |
A truncated survfit
object.
library(survival)
fit <- survfit(Surv(stop, event) ~ 1, data=bladder)
fit2 <- modify.surv.fun(fit, .1, .9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.