Package: manydist 0.5.2

manydist: Distance-Based Learning for Mixed-Type Data

Provides tools for constructing, computing, and using distance measures for numerical, categorical, and mixed-type data. The package implements a flexible framework in which continuous and categorical components can be combined under additive, commensurable, and association-aware specifications. Supported methods include classical distances such as Gower, Euclidean, Manhattan, and Mahalanobis-type distances; categorical dissimilarities such as simple matching, occurrence-frequency, and association-based measures; and mixed-type presets designed to reduce biases due to variable type, scale, distribution, redundancy, and number of categories. The package also provides scaling options, supervised and unsupervised distance constructions, leave-one-variable-out tools for distance-based variable importance, and integration with distance-based learning workflows such as nearest-neighbour prediction, partitioning around medoids, and spectral clustering. Methods are motivated by van de Velden, Iodice D'Enza, Markos, and Cavicchia (2026) <doi:10.1080/10618600.2026.2680181> and related work on categorical and mixed-type dissimilarities.

Authors:Alfonso Iodice D'Enza [aut, cre], Angelos Markos [aut], Michel van de Velden [aut], Carlo Cavicchia [aut]

manydist_0.5.2.tar.gz
manydist_0.5.2.zip(r-4.7-any)manydist_0.5.2.zip(r-4.6-any)manydist_0.5.2.zip(r-4.5-any)
manydist_0.5.2.tgz(r-4.6-any)manydist_0.5.2.tgz(r-4.5-any)
manydist_0.5.2.tar.gz(r-4.7-any)manydist_0.5.2.tar.gz(r-4.6-any)
manydist_0.5.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
manydist/json (API)

# Install 'manydist' in R:
install.packages('manydist', repos = c('https://alfonsoiodicede.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/alfonsoiodicede/manydist_package/issues

Pkgdown/docs site:https://alfonsoiodicede.github.io

Datasets:
  • fifa_nl - FIFA 21 Player Data - Dutch League
  • wdi_2022 - Selected World Development Indicators for 2022

On CRAN:

Conda:

5.12 score 2 stars 49 scripts 332 downloads 23 exports 141 dependencies

Last updated from:53711e475d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK243
source / vignettesOK517
linux-releaseOK392
macos-releaseOK233
macos-oldrelOK324
windows-develOK175
windows-releaseOK425
windows-oldrelOK176
wasm-releaseOK335

Exports:all_dist_method_specsbenchmark_mdistcompare_lovo_mdistcongruence_coeffdist_methods_tbldist_methods_tbl_catfit_knn_distgen_mixedgenerate_datasetknn_distlovo_mdistlovo_method_specmake_mdist_recipemdistnearest_neighbor_distpam_distpredict_knn_dist_classpredict_knn_dist_probpredict_knn_dist_regresponse_aware_methodsspectral_distspectral_from_diststep_mdist

Dependencies:aricodebase64encbitbit64bootbslibcachemclassclicliprclockclusterclusterGenerationcodetoolscommonmarkcpp11crayoncrscubaturedata.tableDEoptimRdiagramdialsDiceDesigndigestdiptestdistancesdplyrentropyevaluatefarverfastDummiesfastmapflexmixfontawesomeforcatsfpcfsfurrrfuturefuture.applyGauProgenericsggplot2globalsgluegowergtablehardhathighrhmshtmltoolsipredisobandjquerylibjsonlitekdmlkernlabKernSmoothknitrlabelinglatticelavalbfgslifecyclelistenvlitedownlubridatemagrittrmarkdownMASSMatrixMatrixModelsmclustmemoisemimemixoptmodelenvmodeltoolsnnetnpnumDerivparallellyparsnipphilentropypillarpkgconfigpoormanprabclusprettyunitsprodlimprogressprogressrpurrrquadprogquantregR6rappdirsRColorBrewerRcppRcppArmadilloRcppParallelreadrrecipesrlangrmarkdownrobustbaserpartrsampleS7sassscalessfdshapesliderSparseMsparsevctrssplitfngrSQUAREMstringistringrsurvivaltailortibbletidyrtidyselecttimechangetimeDatetinytextunetzdbutf8vctrsviridisLitevroomwarpwithrworkflowsxfunyamlyardstick

Readme and manuals

Help Manual

Help pageTopics
Create a grid of `mdist()` method specificationsall_dist_method_specs
Plot pairwise distance benchmark comparisonsautoplot.MDistBenchmark
Benchmark and compare multiple `mdist()` specificationsbenchmark_mdist
Compare LOVO diagnostics across multiple distance specificationscompare_lovo_mdist
Congruence coefficient between two configurationscongruence_coeff
List available `manydist` methodsdist_methods_tbl
List available categorical dissimilaritiesdist_methods_tbl_cat
FIFA 21 Player Data - Dutch Leaguefifa_nl
Generate mixed-type clustering data with signal and noisegen_mixed
generate toy mixed datasets for the supplementary material: figures 1 to 3generate_dataset
Direct nearest-neighbour predictionknn_dist
Leave-one-variable-out diagnostics for distance-based variable importancelovo_mdist
Create a LOVO method specification for `compare_lovo_mdist()`lovo_method_spec
Build a recipe that computes mdist-based distance featuresmake_mdist_recipe
Mixed-type dissimilarities for distance-based learningmdist
Internal: summary method implementation for MDist R6 objectsmdist_summary_impl
PAM clustering specification based on manydist dissimilaritiespam_dist
List response-aware methodsresponse_aware_methods
Spectral clustering specification based on manydist dissimilaritiesspectral_dist
Spectral clustering from a distance matrixspectral_from_dist
Add manydist dissimilarities to a recipestep_mdist
Summarize a distance benchmarksummary.MDistBenchmark
Selected World Development Indicators for 2022wdi_2022