brier | R Documentation |
Generates a brier
class object based on a list
of unique times, Bier scores per timepoint e.g. calculated with
pec
for the reference, training and test data.
brier(times, reference, training, test = NULL)
times |
a numeric vector of unique time points. |
reference |
a numeric vector of Brier scores for the reference survival. |
training |
a numeric vector of Brier scores for the modeled survival in the training dataset. |
test |
a numeric vector of Brier scores for the modeled survival in the test dataset. Defaults to NULL, which means that no validation errors are provided. |
an instance of the brier
class with the plot()
method.
The brier
object is a data frame (time
, reference
, training
and test
variables) bundling the unique times points with
their Brier scores obtained for the reference, training and test data. The
brier
class inherits many of traditional data frame methods, e.g. filter
or group_by
provided by the dplyr
package.
Graf, E., Schmoor, C., Sauerbrei, W. & Schumacher, M. Assessment and comparison of prognostic classification schemes for survival data. Stat. Med. 18, 2529–2545 (1999).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.