Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 24, 2024
1 parent bd6c784 commit b72cf51
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
17 changes: 15 additions & 2 deletions R/performance_roc.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
#' @title Simple ROC curve
#' @name performance_roc
#'
#' @description This function calculates a simple ROC curves of x/y coordinates
#' based on response and predictions of a binomial model.
#' @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 output 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.
#'
#' @param x A numeric vector, representing the outcome (0/1), or a model with
#' binomial outcome.
Expand Down
18 changes: 16 additions & 2 deletions man/performance_roc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b72cf51

Please sign in to comment.