ezr.plot_auc: AUC PLOT

Description Usage Arguments Value

Description

Generates an AUC plot. Can compare two different fields against each other if needed. Can plot either FPR vs TPR columns or Truth vs prediction value(s). Adds the AUC alues to the plots.

Usage

1
2
ezr.plot_auc(dataset, fpr_or_truth, tpr_or_pred, pred_2nd_model = NULL,
  title = NULL, metrics_precalculated = FALSE, add_text = TRUE)

Arguments

dataset

dataset

fpr_or_truth

fpr value or truth. Default is expecting a 0/1 truth value.

tpr_or_pred

fpr or prediction value. Default expects a prediction value.

pred_2nd_model

Default is NULL. If you wish to compare two plots side-by-side, then you must use truth & prediction values.

title

plot title

metrics_precalculated

FALSE by default. This means expects a 0/1 truth_or_fpr and a score in the pred_or_tpr. Set to TRUE if you already know that the FPR and TPR are already calculated for you.

add_text

add text to plot? Default is true.

Value

Returns a plot of the AUC-values


jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.