Skip to contents

This function maps raw test values to probabilities based on their position in the ROC curve. Used for IDI/NRI calculations.

Usage

raw_to_prob(values, actual, direction = ">=")

Arguments

values

Raw test values

actual

Binary outcomes (0/1)

direction

Direction of test (">=" or "<=")

Value

Vector of predicted probabilities