Computes concordance index (c-index) and Brier scores at the specified landmark times and prediction windows.
Usage
# S4 method for class 'Landmarking'
performance_metrics(x, landmarks, windows, c_index = TRUE, brier = TRUE)
Arguments
- x
An object of class
Landmarking
.- landmarks
A numeric vector of landmark times.
- windows
A vector of prediction windows determining horizon times.
- c_index
A logical. If TRUE (default), C index is reported.
- brier
A logical. If TRUE (default), Brier score is reported.