R/e_roc_gg.R
e_roc_gg.Rd
A function to calculate ROC curve, calculate area under the curve (AUC), calculate the optimal threshold, plot the curve, and classify the peaks.
e_roc_gg(
dat,
var_class,
val_feat,
sw_plot = TRUE,
method_name = "",
sw_thresh_criteria = c("min_dist", "spec1_sensmax", "sens1_specmax")[1]
)
dataset name
true classification
XXX DON'T REMEMBER
TRUE/FALSE switch to create plot or not
PREVIOUSLY USED FOR TITLE
(min distand, max spec, or max sens)
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?)