manydist: Unbiased Distances for Mixed-Type Data

A comprehensive framework for calculating unbiased distances in datasets containing mixed-type variables (numerical and categorical). The package implements a general formulation that ensures multivariate additivity and commensurability, meaning that variables contribute equally to the overall distance regardless of their type, scale, or distribution. Supports multiple distance measures including Gower's distance, Euclidean distance, Manhattan distance, and various categorical variable distances such as simple matching, Eskin, occurrence frequency, and association-based distances. Provides tools for variable scaling (standard deviation, range, robust range, and principal component scaling), and handles both independent and association-based category dissimilarities. Implements methods to correct for biases that typically arise from different variable types, distributions, and number of categories. Particularly useful for cluster analysis, data visualization, and other distance-based methods when working with mixed data. Methods based on van de Velden et al. (2024) <doi:10.48550/arXiv.2411.00429> "Unbiased mixed variables distance".

Getting started

Package details

AuthorAlfonso Iodice D'Enza [aut], Angelos Markos [aut, cre], Michel van de Velden [aut], Carlo Cavicchia [aut]
MaintainerAngelos Markos <amarkos@gmail.com>
LicenseGPL-3
Version0.4.5
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("manydist")

Try the manydist package in your browser

Any scripts or data that you put into this service are public.

manydist documentation built on July 2, 2025, 5:09 p.m.