Learn R Programming

bfcluster (version 1.0.0)

buttler_fickel_dist: 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)

Value

An object of class dist.

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".