| get_correlation | R Documentation |
Calculate correlation between two vectors
get_correlation(x, y, method, category = NULL, test = TRUE)
x |
First vector |
y |
Second vector |
method |
One of "spearman" or "pearson" for metric vectors. For catecorical vectors, use "cramer" or "npmi". |
category |
A vector of values to focus. Necessary for the npmi method only. |
test |
Boolean; whether to perform significance tests. |
The result of cor.test() for metric vectors, chisq.test for Cramer's V.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.