Calculates the Brier score at specified evaluation times and the Integrated Brier Score (IBS) up to \(\tau\), using IPCW to handle censoring.
compute_ibrier(
eval_times,
surv_mat,
time_vec,
status_vec,
tau,
censor_eval_fn,
normalize_by = c("non_missing", "n"),
include_zero = TRUE
)A list with ibs (the scalar IBS value) and curve (a
numeric vector of Brier scores at eval_times).
Numeric vector of evaluation time points.
Matrix of predicted survival probabilities (rows=subjects, cols=eval_times).
Numeric vector of test times.
Numeric vector of test statuses.
The time horizon \(\tau\) for integration.
A function (from create_censor_eval) that
evaluates the censoring survival function \(G(t)\).
Character string specifying how to normalize Brier
scores. Use "non_missing" (default) to divide by the number of
non-missing contributions or "n" to divide by the total sample size.
Logical; if TRUE, integrates from time 0 with a
Brier score of 0 when the evaluation grid starts after 0.