brier: Build a brier class object.

View source: R/brier_oop.R

brierR Documentation

Build a brier class object.

Description

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.

Usage

brier(times, reference, training, test = NULL)

Arguments

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.

Value

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.

References

  • Graf, E., Schmoor, C., Sauerbrei, W. & Schumacher, M. Assessment and comparison of prognostic classification schemes for survival data. Stat. Med. 18, 2529–2545 (1999).


PiotrTymoszuk/coxExtensions documentation built on Feb. 6, 2024, 10:58 p.m.