Skip to content

Commit

Permalink
Update performance_roc.R
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Nov 14, 2024
1 parent e5d0a6d commit 454b24a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/performance_roc.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
#' @description This function calculates a simple ROC curves of x/y coordinates
#' based on response and predictions of a binomial model.
#'
#' It returns the area under the curve (AUC) as a percentage, which corresponds
#' to the probability that a randomly chosen observation of "condition 1" is correctly
#' classified by the model as having a higher probability of being "condition 1" than
#' a randomly chosen "condition 2" observation.
#'
#' Applying `as.data.frame()` to the ouput returns a data frame containing the following:
#' - `Sensitivity` (that actually corresponds to `1 - Specificity`): It is the False Positive Rate.
#' - `Sensitivity`: It is the True Positive Rate, which is the proportion of correctly classified "condition 1" observations.

Check warning on line 14 in R/performance_roc.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/performance_roc.R,line=14,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
#'
#' @param x A numeric vector, representing the outcome (0/1), or a model with
#' binomial outcome.
#' @param predictions If `x` is numeric, a numeric vector of same length
Expand Down

0 comments on commit 454b24a

Please sign in to comment.