Plot the smooth calibration as detailed in Calster et al. "A calibration heirarchy for risk models was defined: from utopia to empirical data" (2016)
plotSmoothCalibration(result, smooth = c("loess", "rcs"), span = 1, nKnots = 5, scatter = F, type = "test", bins = 20, zoom = c("none", "deciles", "data"), fileName = NULL)
The result of running
options: 'loess' or 'rcs'
This specifies the width of span used for loess. This will allow for faster computing and lower memory usage.
The number of knots to be used by the rcs evaluation. Default is 5
plot the decile calibrations as points on the graph. Default is False
Whether to use train or test data, default is test.
The number of bins for the histogram. Default is 20.
Zoom in on the region containing the deciles or on the data. If not specified shows the entire space.
Name of the file where the plot should be saved, for example 'plot.png'. See the
A cowplot object. Use the
cowplot::save_plot function to save to file in a different format.
Create a plot showing the smoothed calibration #'