vm | R Documentation |
The function calculates a dissimilarity matrix based on the VM similarity measure.
vm(data, var.weights = NULL)
data |
A data.frame or a matrix with cases in rows and variables in columns. |
var.weights |
A numeric vector setting weights to the used variables. One can choose the real numbers from zero to one. |
The Variable Mutability similarity measure was introduced in (Sulc and Rezankova, 2019). It treats the similarity between two categories based on the within-cluster variability expressed by the normalized mutability. The measure assigns higher weights to rarer categories.
The function returns an object of the class "dist".
Zdenek Sulc.
Contact: zdenek.sulc@vse.cz
Sulc Z. and Rezankova H. (2019). Comparison of Similarity Measures for Categorical Data in Hierarchical Clustering. Journal of Classification. 2019, 35(1), p. 58-72. DOI: 10.1007/s00357-019-09317-5.
anderberg
,
burnaby
,
eskin
,
gambaryan
,
goodall1
,
goodall2
,
goodall3
,
goodall4
,
iof
,
lin
,
lin1
,
of
,
sm
,
smirnov
,
ve
,
#sample data
data(data20)
# dissimilarity matrix calculation
prox.vm <- vm(data20)
# dissimilarity matrix calculation with variable weights
weights.vm <- vm(data20, var.weights = c(0.7, 1, 0.9, 0.5, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.