modify.surv.fun: Truncate 'survfit' object

Description Usage Arguments Value Examples

View source: R/package_functions.R

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)

optband documentation built on May 19, 2017, 5:29 p.m.

Search within the optband package
Search all R packages, documentation and source code