dx_nir | R Documentation |
The No Information Rate is the proportion of the largest class in the actual outcomes. It represents the accuracy that a naive model would achieve by always predicting the most frequent class. It's a baseline measure for classification performance.
dx_nir(cm, detail = "full")
cm |
A dx_cm object created by |
detail |
Character specifying the level of detail in the output: "simple" for raw estimate, "full" for detailed estimate including 95% confidence intervals. |
Depending on the detail
parameter, returns a numeric value
representing the calculated metric or a data frame/tibble with
detailed diagnostics including confidence intervals and possibly other
metrics relevant to understanding the metric.
cm <- dx_cm(dx_heart_failure$predicted, dx_heart_failure$truth, threshold = 0.5, poslabel = 1)
nir <- dx_nir(cm)
print(nir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.