# Calculate cp_auc of Sepal.Width as a classifier of setosa especies in
# FPR = (0, 0.1)
cp_auc(
iris,
response = Species,
predictor = Sepal.Width,
lower_threshold = 0,
upper_threshold = 0.1,
ratio = "fpr"
)
# Calculate ncp_auc of Sepal.Width as a classifier of setosa especies in
# FPR = (0, 0.1)
ncp_auc(
iris,
response = Species,
predictor = Sepal.Width,
lower_threshold = 0,
upper_threshold = 0.1,
ratio = "fpr"
)
Run the code above in your browser using DataLab