Creates a calibration plot showing predicted vs observed probabilities in the target population, with optional confidence bands and histogram.
Arguments
- x
A
tr_calibrationobject.- add_reference
Logical; add 45-degree reference line (default: TRUE).
- show_metrics
Logical; show calibration metrics on plot (default: TRUE).
- add_histogram
Logical; add histogram of predictions below the calibration curve (default: TRUE).
- add_rug
Logical; add rug plot to show individual predictions (default: FALSE).
- add_ci
Logical; add bootstrap confidence bands if available (default: TRUE if bootstrap was run).
- ...
Additional arguments passed to plotting functions.
