powered by
This function computes the xi coefficient between two vectors x and y.
calculateXI(xvec, yvec, simple = TRUE)
In the case simple = TRUE, function returns the value of the xi coefficient, If simple = FALSE is chosen, the function returns a list:
rearranged rank of yvec
mean(gr*(1-gr))
Vector of numeric values in the first coordinate.
Vector of numeric values in the second coordinate.
Whether auxiliary information is kept to pass on.
Sourav Chatterjee, Susan Holmes
Chatterjee, S. (2020) A New Coefficient Of Correlation, <arXiv:1909.10140>.
xicor
# Compute one of the coefficients library("psychTools") data(peas) calculateXI(peas$parent,peas$child) calculateXI(peas$child,peas$parent)
Run the code above in your browser using DataLab