Computes a distance matrix following Buttler & Fickel (1995) for mixed-scale variables. Each variable-specific distance matrix is normalized by its mean pairwise distance (Gini mean difference), ensuring equal contribution of all variables to the overall distance.
buttler_fickel_dist(df, types)An object of class dist.
A data.frame where rows are cases and columns are variables.
A character vector of the same length as ncol(df),
indicating the scale level of each variable. Allowed values are
"metric", "ordinal", or "nominal".