Skip to content

Commit fd4851b

Browse files
update documentation of sens and spec (#595)
1 parent 8e984a1 commit fd4851b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

R/class-sens.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#'
77
#' The sensitivity (`sens()`) is defined as the proportion of positive
88
#' results out of the number of samples which were actually
9-
#' positive.
9+
#' positive. For positive observations, the proportion of model predictions
10+
#' that correctly predicted positive.
1011
#'
1112
#' When the denominator of the calculation is `0`, sensitivity is undefined.
1213
#' This happens when both `# true_positive = 0` and `# false_negative = 0`

R/class-spec.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
#' Highly related functions are [sens()], [ppv()], and [npv()].
66
#'
77
#' The specificity measures the proportion of negatives that are correctly
8-
#' identified as negatives.
8+
#' identified as negatives. For negative observations, the proportion of model
9+
#' predictions that correctly predicted negative.
910
#'
1011
#' When the denominator of the calculation is `0`, specificity is undefined.
1112
#' This happens when both `# true_negative = 0` and `# false_positive = 0`

man/sens.Rd

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

man/spec.Rd

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

0 commit comments

Comments
 (0)