## get the list of available methods:
get_inbuilt_cutpoint_methods()
## get the cutpoint that maximises the Youden index for a given set of
## probabilities and outcomes
get_inbuilt_cutpoint(
predicted = runif(1000),
actual = sample(c(0, 1), size = 1000, replace = TRUE),
method = "youden"
)
Run the code above in your browser using DataLab