calculateSIT {SIT} | R Documentation |
Compute the cross rank coefficient sit on two vectors.
Description
This function computes the sit coefficient between two vectors x and y.
Usage
calculateSIT(x, y, c = 2)
Arguments
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. |
Value
The function returns the value of the sit coefficient.
Note
Auxiliary function with no checks for NA, etc.
Author(s)
Yilin Zhang, Canyi Chen & Liping Zhu
References
Zhang Y., Chen C., & Zhu L. (2021). Sliced Independence Test. Statistica Sinica. https://doi.org/10.5705/ss.202021.0203.
See Also
sitcor
Examples
# Compute one of the coefficients
library("psychTools")
data(peas)
calculateSIT(peas$parent,peas$child)
calculateSIT(peas$child,peas$parent)
[Package SIT version 0.1.0 Index]