View source: R/CategoricalDistances.R
CategoricalDistances | R Documentation |
Distances among individuals using nominal variables.
CategoricalDistances(x, y = NULL, coefficient = "GOW", transformation = "sqrt(1-S)")
x |
Matrix of Categorical Data |
y |
A second matrix of categorical data with the same variables as x |
coefficient |
Similarity coefficient to use (see details) |
transformation |
Transformation of the similarity into a distance |
The function calculates similarities and dissimilarities among a set ob ogjects characterized by a set of nominal variables. The function uses similarities and converts into dissimilarities using a variety of transformations controled by the user.
A matrix with distances among the rows of x and y. If y is NULL the interdistances among the rows of x are calculated.
Jose Luis Vicente Villardon
dos Santos, T. R., & Zarate, L. E. (2015). Categorical data clustering: What similarity measure to recommend?. Expert Systems with Applications, 42(3), 1247-1260.
Boriah, S., Chandola, V., & Kumar, V. (2008). Similarity measures for categorical data: A comparative evaluation. red, 30(2), 3.
##---- Should be DIRECTLY executable !! ----
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.