buttler_fickel_dist: Buttler-Fickel Distance Matrix

View source: R/buttler_fickel_dist.R

buttler_fickel_distR Documentation

Buttler-Fickel Distance Matrix

Description

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.

Usage

buttler_fickel_dist(df, types)

Arguments

df

A data.frame where rows are cases and columns are variables.

types

A character vector of the same length as ncol(df), indicating the scale level of each variable. Allowed values are "metric", "ordinal", or "nominal".

Value

An object of class dist.


bfcluster documentation built on Nov. 24, 2025, 10:15 a.m.