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".
| Version: | 0.4.9 |
| Depends: | R (≥ 4.1.0) |
| Imports: | entropy, Matrix, fastDummies, data.table, philentropy, cluster, purrr, dplyr, tidyr, forcats, tibble, magrittr, fpc, recipes, rsample, Rfast, readr, distances |
| Suggests: | palmerpenguins |
| Published: | 2026-02-04 |
| DOI: | 10.32614/CRAN.package.manydist |
| Author: | Alfonso Iodice D'Enza [aut], Angelos Markos [aut, cre], Michel van de Velden [aut], Carlo Cavicchia [aut] |
| Maintainer: | Angelos Markos <amarkos at gmail.com> |
| License: | GPL-3 |
| NeedsCompilation: | no |
| Citation: | manydist citation info |
| CRAN checks: | manydist results |
| Reference manual: | manydist.html , manydist.pdf |
| Package source: | manydist_0.4.9.tar.gz |
| Windows binaries: | r-devel: manydist_0.4.9.zip, r-release: manydist_0.4.9.zip, r-oldrel: manydist_0.4.9.zip |
| macOS binaries: | r-release (arm64): manydist_0.4.9.tgz, r-oldrel (arm64): manydist_0.4.9.tgz, r-release (x86_64): manydist_0.4.9.tgz, r-oldrel (x86_64): manydist_0.4.9.tgz |
| Old sources: | manydist archive |
Please use the canonical form https://CRAN.R-project.org/package=manydist to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.