Signal detection values for modules that classify papers as having a feature or not
Examples
expected <- c(TRUE, TRUE, FALSE, FALSE, TRUE)
observed <- c(TRUE, FALSE, FALSE, TRUE, TRUE)
accuracy(expected, observed)
#> $hits
#> [1] 2
#>
#> $misses
#> [1] 1
#>
#> $false_alarms
#> [1] 1
#>
#> $correct_rejections
#> [1] 1
#>
#> $accuracy
#> [1] 0.6
#>
#> $sensitivity
#> [1] 0.6666667
#>
#> $specificity
#> [1] 0.5
#>
#> $d_prime
#> [1] 0.4307273
#>
#> $beta
#> [1] 0.9114095
#>
#> attr(,"class")
#> [1] "metacheck_accuracy_measures"
