Encode an interval-censored event history
Arguments
- l, r
Numeric vectors of time bounds. An event occurred in
(l, r]. For events detected at visits, use the last event-free time and the first detection time. Setl = ronly for a known exact event time. For right censoring, use the last event-free time and setrtoInf.- epsilon
Event code. The defaults in
cifcurve()are 0 for right censoring, 1 for the event of interest, and 2 for the competing event. For an observed event, the code identifies which event occurred first.
Value
An Interval matrix for use as the response in cifcurve().