Processes interval-censored data (and corresponding indicators) to produce
an ordered set of exam times and flags indicating censoring status. It also
adjusts certain delta and gamma values based on constraints
so that the first observation is always an event time, and the last
observation is always right-censored.
Arguments
- delta
Numeric (0/1). Event indicator for left endpoint
U.- gamma
Numeric (0/1). Event indicator for right endpoint
V.- U
Numeric vector of left endpoints of censoring intervals (may contain
NA).- V
Numeric vector of right endpoints of censoring intervals (may contain
NA).- Z
A matrix (or data frame) of covariates, with one row per subject.
Value
A list with the following components:
tA condensed, ordered set of exam times.
indexA matrix of dimension
n x 2, giving the ranks (indices) forUandVafter ordering.dataA matrix (or data frame) containing the updated
delta,gamma,U,V, andZvalues.
Details
This function ensures that the earliest recorded time in t corresponds
to a left endpoint that is truly an event, while the latest recorded time
is right-censored. It also removes observations that are no longer valid
after these adjustments. The vector flag is used internally to mark
observation types (1 = event, 2 = left-censored, 3 = both, 4 = right-censored).