Get a cutpoint using the methods inbuilt to predictNMB
Source:R/cutpoint_methods.R
get_inbuilt_cutpoint.Rd
Get a cutpoint using the methods inbuilt to predictNMB
Examples
## get the list of available methods:
get_inbuilt_cutpoint_methods()
#> [1] "all" "none" "value_optimising" "youden"
#> [5] "cost_minimising" "prod_sens_spec" "roc01" "index_of_union"
## 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"
)
#> [1] 0.2542118