The function calculates a dissimilarity matrix based on the G3 similarity measure.
goodall3(data, var.weights = NULL)
The function returns an object of the class "dist".
A data.frame or a matrix with cases in rows and variables in columns.
A numeric vector setting weights to the used variables. One can choose the real numbers from zero to one.
Zdenek Sulc.
Contact: zdenek.sulc@vse.cz
The Goodall 3 similarity measure was presented in (Boriah et al., 2008). It is a simple modification of the original Goodall measure (Goodall, 1966). The measure assigns higher weight if the infrequent categories match regardless on frequencies of other categories.
Boriah S., Chandola V., Kumar V. (2008). Similarity measures for categorical data: A comparative evaluation.
In: Proceedings of the 8th SIAM International Conference on Data Mining, SIAM, p. 243-254.
Goodall V.D. (1966). A new similarity index based on probability. Biometrics, 22(4), p. 882.
anderberg
,
burnaby
,
eskin
,
gambaryan
,
good1
,
goodall1
,
good2
,
goodall2
,
good3
,
good4
,
goodall4
,
iof
,
lin
,
lin1
,
of
,
sm
,
smirnov
,
ve
,
vm
.
# sample data
data(data20)
# dissimilarity matrix calculation
prox.goodall3 <- goodall3(data20)
# dissimilarity matrix calculation with variable weights
weights.goodall3 <- goodall3(data20, var.weights = c(0.7, 1, 0.9, 0.5, 0))
Run the code above in your browser using DataLab