create_int2Surv: Create an interval censored Survival object

Description Usage Arguments Value Examples

Description

Create a survival object from interval censored data with fixed observation times where only times with events or the last observation times (leading to right censoring) were reported. Observation times were defined before conducting the study and that were the same for all subjects.

Usage

1
create_int2Surv(obsTimes, ev, defTimes = unique(obsTimes))

Arguments

obsTimes

A numeric vector with the observed survival times (the right interval bounds.)

ev

Were events observed at obsTimes? A vector of the same length as obsTimes, either logical oder integer with 0 = censored and 1 = event.

defTimes

A numeric vector with all observation times.

Value

An object of class Surv with type = "interval2".

Examples

1
with(MIC, create_int2Surv(concentration, inhibition))

VZoche-Golob/AFTtools documentation built on May 9, 2019, 9:42 p.m.