plot_metric | R Documentation |
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)
x |
A cutpointr object. |
conf_lvl |
The confidence level of the bootstrap confidence interval. Set to 0 to draw no bootstrap confidence interval. |
add_unsmoothed |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.