plot_metric: Plot a metric over all possible cutoffs from a cutpointr...

View source: R/plot_metric.R

plot_metricR Documentation

Plot a metric over all possible cutoffs from a cutpointr object

Description

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.

Usage

plot_metric(x, conf_lvl = 0.95, add_unsmoothed = TRUE)

Arguments

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.

See Also

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()

Examples

opt_cut <- cutpointr(suicide, dsi, suicide)
plot_metric(opt_cut)

cutpointr documentation built on April 14, 2022, 1:06 a.m.