View source: R/association_metrics.R
association_metrics | R Documentation |
This function calculates various association metrics for elements in a sequence, such as Pointwise Mutual Information (PMI), normalized PMI, attraction, reliance, Delta P, z-score, t-score, Chi-squared, Jaccard coefficient, Dice coefficient, log odds ratio, and geometric mean.
association_metrics(sequences)
sequences |
A character vector of sequences to analyze. |
A data frame with the calculated association metrics for each dyad (pair of elements).
# Example usage:
sequences <- c("A B C", "A B", "A C", "B C", "A B C D")
result <- association_metrics(sequences)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.