similarity {SemNeT} | R Documentation |
Measures of Similarity
Description
Computes several measures of similarity (see Choi, Cha, & Tappert, 2010 for additional measures)
Usage
similarity(
data,
method = c("angular", "cor", "cosine", "euclid", "faith", "jaccard", "phi", "rr")
)
Arguments
data |
Matrix or data frame. A binarized dataset of verbal fluency or linguistic data | ||||||||||||||||||||||||||
method |
Character. Type of similarity measure to compute. Below are the definitions for each bin:
Options include:
|
Value
A symmetric similarity matrix
Author(s)
Alexander Christensen <alexpaulchristensen@gmail.com>
References
Choi, S. S., Cha, S. H., & Tappert, C. C. (2010). A survey of binary similarity and distance measures. Journal of Systemics, Cybernetics and Informatics, 8, 43-48.
Examples
# Simulate Datasets
one <- sim.fluency(10)
# Compute similarity matrix
cos <- similarity(one, method = "cosine")