Skip to content

Commit

Permalink
feat: add fall out alias for FPR
Browse files Browse the repository at this point in the history
  • Loading branch information
overdodactyl committed Jan 5, 2024
1 parent af56ea2 commit 713a3a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/dx_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ dx_fnr <- function(cm, detail = "full", ...) {
#'
#' The formula for FPR is:
#' \deqn{FPR = \frac{False Positives}{False Positives + True Negatives}}{FPR = FP / (FP + TN)}
#'
#' @aliases dx_fall_out
#' @name fpr
#' @examples
#' cm <- dx_cm(dx_heart_failure$predicted, dx_heart_failure$truth, threshold =
#' 0.5, poslabel = 1)
Expand All @@ -195,6 +196,9 @@ dx_fpr <- function(cm, detail = "full", ...) {
metric_binomial(cm$fp, cm$disneg, name = "False Positive Rate", detail = detail, ...)
}

#' @rdname fpr
dx_fall_out <- dx_fpr

#' Calculate False Discovery Rate (FDR)
#'
#' Calculates the False Discovery Rate (FDR), which is the proportion of false positives
Expand Down
6 changes: 5 additions & 1 deletion man/dx_fpr.Rd → man/fpr.Rd

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

0 comments on commit 713a3a6

Please sign in to comment.