surv.range {optband}R 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)


[Package optband version 0.2.2 Index]