Generates the calibration plot from the data needed to print it. This data is generated with the get_calibration_plot_data_surv() and get_calibration_plot_data_prop() functions.
Arguments
- data
Outcome of the
get_calibration_plot_data_surv()orget_calibration_plot_data_prop()functions.
Examples
if (FALSE) { # \dontrun{
model |>
get_calibration_plot_data_surv(data, 10, type = "predictions_aggregated") |>
get_calibration_plot()
model |>
get_calibration_plot_data_prop(data, 10, type = "predictions_aggregated") |>
get_calibration_plot()
} # }