View source: R/cutpoint_methods.R
get_inbuilt_cutpoint | R Documentation |
Get a cutpoint using the methods inbuilt to predictNMB
get_inbuilt_cutpoint(predicted, actual, nmb, method)
predicted |
A vector of predicted probabilities |
actual |
A vector of actual outcomes |
nmb |
A named vector containing NMB assigned to each classification |
method |
A cutpoint selection method to be used methods that can be used as the method argument |
Returns a selected cutpoint (numeric).
## 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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.