npauc_lower_bounds | R Documentation |
Calculate and plot lower bound defined by NpAUC specificity index.
add_npauc_normalized_lower_bound()
allows to plot normalized
lower bound, which is used to formally calculate NpAUC.
add_npauc_lower_bound()
is a lower level function
providing a way to plot lower bound previous to normalization.
add_npauc_lower_bound(
data,
response = NULL,
predictor = NULL,
threshold,
.condition = NULL,
.label = NULL
)
add_npauc_normalized_lower_bound(
data,
response = NULL,
predictor = NULL,
threshold,
.condition = NULL,
.label = NULL
)
data |
A data.frame or extension (e.g. a tibble) containing values for predictors and response variables. |
response |
A data variable which must be a factor, integer or character vector representing the prediction outcome on each observation (Gold Standard). If the variable presents more than two possible outcomes, classes or categories:
New combined category represents the "absence" of the condition to predict.
See |
predictor |
A data variable which must be numeric, representing values of a classifier or predictor for each observation. |
threshold |
A number between 0 and 1, inclusive. This number represents the lower value of TPR for the region where to calculate and plot lower bound. Because of definition of |
.condition |
A value from response that represents class, category or condition of interest which wants to be predicted. If Once the class of interest is selected, rest of them will be collapsed in a common category, representing the "absence" of the condition to be predicted. See |
.label |
A string representing the name used in labels. If |
A ggplot layer instance object.
plot_roc_curve(iris, response = Species, predictor = Sepal.Width) +
add_npauc_lower_bound(
iris,
response = Species,
predictor = Sepal.Width,
threshold = 0.9
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.