Skip to contents

This function calculates the correlation between different similarity measures.

Usage

calc_sim_cor(comparison_df)

Arguments

comparison_df

A data frame output from compare_sim_meas()

Value

A correlation matrix

Examples

topic_similarities <- list("1" = c(0.5, 0.6, 0.7), "2" = c(0.4, 0.5, 0.6))
lexical_similarities <- list("1" = c(0.6, 0.7, 0.8), "2" = c(0.5, 0.6, 0.7))
comparison_df <- compare_sim_meas(
  list(topic_similarities, lexical_similarities),
  c("Topic", "Lexical")
)
calc_sim_cor(comparison_df)
#>         Topic Lexical
#> Topic       1       1
#> Lexical     1       1