View source: R/iclogcondist_functions.R
| data_prep | R Documentation |
This function processes interval-censored data and prepares various components needed for model fitting, including unique time points, censoring intervals, and weights.
data_prep(X)
X |
A matrix or data frame of interval-censored data where each row contains the lower and upper bounds of the interval for each observation. |
A list containing:
Unique time points.
The number of unique time points (excluding infinity if present).
Indices of observations where the event is in the intersection of L group and the complement of R group. The L group consists of samples with left intervals time <= min(all right intervals time). The R group consists of samples with infinity right interval time.
Indices of observations where the event is in the intersection of the complement of L group and R group.
Indices of observations where the event is in the intersection of the complement of L group and the complement of R group.
Indices corresponding to the right bounds of the intervals in tau.
Indices corresponding to the left bounds of the intervals in tau.
Unique time points excluding infinity.
Weights for each unique interval.
Processed matrix of interval-censored data with unique rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.