Learn R Programming

cutpointr (version 0.7.3)

plot_metric: 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)

Arguments

x

A cutpointr object.

conf_lvl

The confidence level of the bootstrap confidence interval. Set to 0 to draw no bootstrap confidence interval.

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

Run this code
# NOT RUN {
opt_cut <- cutpointr(suicide, dsi, suicide)
plot_metric(opt_cut)
# }

Run the code above in your browser using DataLab