View source: R/chatterjee_correlation.R
| chatterjee_correlation | R Documentation |
Functions to compute the Chatterjee correlation.
chatterjee_correlation(x, y)
x |
A numeric vector. |
y |
A numeric vector. |
A two-element numeric vector containing the test statistic and the p-value.
Boost Documentation for more details on the mathematical background.
x <- c(1, 2, 3, 4, 5)
y <- c(2, 3, 5, 7, 11)
# Chatterjee correlation
chatterjee_correlation(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.