Minimal negative precision for thresholds with a minimal prevalence
neg_prec_with_prev_greater.Rd
A function factory.
Usage
neg_prec_with_prev_greater(min_prev)
Arguments
min_prev
A numeric scalar, the minimal prevalence.
Value
A function that takes two numeric vectors y and y_hat and returns
the minimal precision over those thresholds yielding a prevalence of at least
min_prev.