similarity | R Documentation |
Computes several measures of similarity (see Choi, Cha, & Tappert, 2010 for additional measures)
similarity(
data,
method = c("angular", "cor", "cosine", "euclid", "faith", "jaccard", "phi", "rr")
)
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:
|
A symmetric similarity matrix
Alexander Christensen <alexpaulchristensen@gmail.com>
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.
# Simulate Datasets
one <- sim.fluency(10)
# Compute similarity matrix
cos <- similarity(one, method = "cosine")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.