modify.surv.fun: Truncate 'survfit' object

View source: R/package_functions.R

modify.surv.funR 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 survfit object.

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)


seasamgo/optband documentation built on April 23, 2023, 1:08 p.m.