calculateSIT | R Documentation |
This function computes the sit coefficient between two vectors x and y.
calculateSIT(x, y, c = 2)
x |
Vector of numeric values in the first coordinate. |
y |
Vector of numeric values in the second coordinate. |
c |
The number of observations in each slice. |
The function returns the value of the sit coefficient.
Auxiliary function with no checks for NA, etc.
Yilin Zhang, Canyi Chen & Liping Zhu
Zhang Y., Chen C., & Zhu L. (2021). Sliced Independence Test. Statistica Sinica. https://doi.org/10.5705/ss.202021.0203.
sitcor
# Compute one of the coefficients
library("psychTools")
data(peas)
calculateSIT(peas$parent,peas$child)
calculateSIT(peas$child,peas$parent)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.