matrix of dimension length(cutoffs)x4, with (i,2g-1)th entry the relevant fairness metric for group g at the ith cutoff value and (i,2g)th entry the approximate standard error of the (i,2g-1)th entry
Arguments
scores
vector of risk scores
target
vector of values of target (which risk score aims to predict)
category
vector of categories
group1
indices of group 1
group2
indices of group 2
cutoffs
score cutoffs at which to estimate metric (default 100 evenly-spaced)
nboot
number of bootstrap samples for standard error
Details
Namely, calculates
sum ( P(target=TRUE|score<=cutoff,category=c,group=g)P(category=c|score<cutoff) )