Add cross-group statistics to the importance table
Source:R/plot_variable_importance.R
add_cross_group_stats.RdClassifies each variable as either "Original" or "New" and optionally appends a summary statistic (mean, sum, or max) of the opposite group. The added statistic is flagged with `is_stat = TRUE` and can be used for plotting a reference bar.