calculateXI | R Documentation |
This function computes the xi coefficient between two vectors x and y.
calculateXI(xvec, yvec, simple = TRUE)
xvec |
Vector of numeric values in the first coordinate. |
yvec |
Vector of numeric values in the second coordinate. |
simple |
Whether auxiliary information is kept to pass on. |
In the case simple = TRUE, function returns the value of the xi coefficient, If simple = FALSE is chosen, the function returns a list:
The xi coefficient
rearranged rank of yvec
mean(gr*(1-gr))
Auxiliary function with no checks for NA, etc.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.