# Calc ROC points of Sepal.Width as a classifier of setosa species
# in TPR = (0.9, 1)
calc_partial_roc_points(
iris,
response = Species,
predictor = Sepal.Width,
lower_threshold = 0.9,
upper_threshold = 1,
ratio = "tpr"
)
# Change class to virginica
calc_partial_roc_points(
iris,
response = Species,
predictor = Sepal.Width,
lower_threshold = 0.9,
upper_threshold = 1,
ratio = "tpr",
.condition = "virginica"
)
Run the code above in your browser using DataLab