dx_compare | R Documentation |
Compares multiple classification models pairwise using various statistical tests to assess differences in performance metrics. It supports both paired and unpaired comparisons.
dx_compare(dx_list, paired = TRUE)
dx_list |
A list of |
paired |
Logical, indicating whether the comparisons should be treated as paired. Paired comparisons are appropriate when models are evaluated on the same set of instances (e.g., cross-validation or repeated measures). |
This function is a utility to perform a comprehensive comparison between
multiple classification models. Based on the value of paired
, it will
perform appropriate tests. The resulting object can be used it further
functions like dx_plot_rocs.
A dx_compare
object containing a list of dx
objects and a data frame of
pairwise comparison results for each test conducted.
dx_delong()
, dx_z_test()
, dx_mcnemars()
for more details on the tests used for comparisons.
dx_glm <- dx(data = dx_heart_failure, true_varname = "truth", pred_varname = "predicted")
dx_rf <- dx(data = dx_heart_failure, true_varname = "truth", pred_varname = "predicted_rf")
dx_list <- list(dx_glm, dx_rf)
dx_comp <- dx_compare(dx_list, paired = TRUE)
print(dx_comp$tests)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.