
Last chance! 50% off unlimited learning
Sale ends in
If maximize_metric
is used as method
function in cutpointr the computed
metric values over all possible cutoffs can be plotted. Generally, this
works for method functions that return a ROC-curve including the metric
value for every cutpoint along with the optimal cutpoint.
plot_metric(x, conf_lvl = 0.95, add_unsmoothed = TRUE)
A cutpointr object.
The confidence level of the bootstrap confidence interval. Set to 0 to draw no bootstrap confidence interval.
Add the line of unsmoothed metric values to the plot. Applicable for some smoothing methods, e.g. maximize_gam_metric.
Other cutpointr plotting functions:
plot.cutpointr()
,
plot_cut_boot()
,
plot_cutpointr()
,
plot_metric_boot()
,
plot_precision_recall()
,
plot_roc()
,
plot_sensitivity_specificity()
,
plot_x()
Other cutpointr plotting functions:
plot.cutpointr()
,
plot_cut_boot()
,
plot_cutpointr()
,
plot_metric_boot()
,
plot_precision_recall()
,
plot_roc()
,
plot_sensitivity_specificity()
,
plot_x()
opt_cut <- cutpointr(suicide, dsi, suicide)
plot_metric(opt_cut)
Run the code above in your browser using DataLab