e_roc_gg: A function to calculate ROC curve, calculate area under the...

View source: R/e_roc_gg.R

e_roc_ggR Documentation

A function to calculate ROC curve, calculate area under the curve (AUC), calculate the optimal threshold, plot the curve, and classify the peaks.

Description

A function to calculate ROC curve, calculate area under the curve (AUC), calculate the optimal threshold, plot the curve, and classify the peaks.

Usage

e_roc_gg(
  dat,
  var_class,
  val_feat,
  sw_plot = TRUE,
  method_name = "",
  sw_thresh_criteria = c("min_dist", "spec1_sensmax", "sens1_specmax")[1]
)

Arguments

dat

dataset name

var_class

true classification

val_feat

XXX DON'T REMEMBER

sw_plot

TRUE/FALSE switch to create plot or not

method_name

PREVIOUSLY USED FOR TITLE

sw_thresh_criteria

(min distand, max spec, or max sens)

Value

out is a list including the optimal threshold, val_feat (XXX), good_class (XXX), plot_roc is a plot of the roc curve using ggplot, and roc_dat includes the curve, best value of the curve, and cm.feat (XXX?)


erikerhardt/erikmisc documentation built on April 17, 2025, 10:48 a.m.