Group-wise rates from a confusion table
Usage
morie_fairness_rates(tp, fp, fn, tn)
Arguments
- tp, fp, fn, tn
Cell counts (or masses) of the confusion table for
one group; all positive.
Value
A list with p (base rate), ppv, fpr,
fnr and n.
Examples
morie_fairness_rates(tp = 120, fp = 60, fn = 40, tn = 280)
#> $p
#> [1] 0.32
#>
#> $ppv
#> [1] 0.6666667
#>
#> $fpr
#> [1] 0.1764706
#>
#> $fnr
#> [1] 0.25
#>
#> $n
#> [1] 500
#>