Learn R Programming

boostmath (version 1.4.0)

chatterjee_correlation: Chatterjee Correlation Function

Description

Functions to compute the Chatterjee correlation.

Usage

chatterjee_correlation(x, y)

Value

A two-element numeric vector containing the test statistic and the p-value.

Arguments

x

A numeric vector.

y

A numeric vector.

See Also

Boost Documentation for more details on the mathematical background.

Examples

Run this code
x <- c(1, 2, 3, 4, 5)
y <- c(2, 3, 5, 7, 11)
# Chatterjee correlation
chatterjee_correlation(x, y)

Run the code above in your browser using DataLab