Calculates Uno's C-index (a time-dependent AUC measure) for survival data, weighted by the inverse probability of censoring (IPCW).
compute_uno_c_index(
train_time,
train_status,
test_time,
test_status,
risk_vec,
tau,
censor_eval_fn
)The computed Uno's C-index, or NA_real_ on failure.
Numeric vector of training times (used for censor model).
Numeric vector of training statuses (used for censor model).
Numeric vector of test times.
Numeric vector of test statuses.
Numeric vector of predicted risk scores for test data.
The time horizon \(\tau\) for evaluation. If NA or
<= 0, the maximum finite test time is used.
A function (from create_censor_eval) that
evaluates the censoring survival function \(G(t)\).