R/chatterjee_correlation.R
chatterjee_correlation.Rd
Functions to compute the Chatterjee correlation.
chatterjee_correlation(x, 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) #> [1] 0.5