surv.range: Evaluate whether times are in an interval

View source: R/package_functions.R

surv.rangeR Documentation

Evaluate whether times are in an interval

Description

surv.range evaluates survfit object survival times by upper and lower bounds.

Usage

surv.range(survi, tl, tu)

Arguments

survi

a survfit object.

tl

the lower bound.

tu

the upper bound.

Value

A boolean vector.

Examples

library(survival)
fit <- survfit(Surv(stop, event) ~ 1, data=bladder)
summary(fit)
surv.range(fit, .1, .9)


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