Skip to content

Commit b72cf51

Browse files
committed
docs
1 parent bd6c784 commit b72cf51

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

R/performance_roc.R

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
#' @title Simple ROC curve
22
#' @name performance_roc
33
#'
4-
#' @description This function calculates a simple ROC curves of x/y coordinates
5-
#' based on response and predictions of a binomial model.
4+
#' @description
5+
#' This function calculates a simple ROC curves of x/y coordinates based on
6+
#' response and predictions of a binomial model.
7+
#'
8+
#' It returns the area under the curve (AUC) as a percentage, which corresponds
9+
#' to the probability that a randomly chosen observation of "condition 1" is
10+
#' correctly classified by the model as having a higher probability of being
11+
#' "condition 1" than a randomly chosen "condition 2" observation.
12+
#'
13+
#' Applying `as.data.frame()` to the output returns a data frame containing the
14+
#' following:
15+
#' - `Sensitivity` (that actually corresponds to `1 - Specificity`): It is the
16+
#' False Positive Rate.
17+
#' - `Sensitivity`: It is the True Positive Rate, which is the proportion of
18+
#' correctly classified "condition 1" observations.
619
#'
720
#' @param x A numeric vector, representing the outcome (0/1), or a model with
821
#' binomial outcome.

man/performance_roc.Rd

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)