rankcorrelation
Rank correlation is a statistical measure of the strength and direction of association between two variables when the data are considered as ranks rather than raw values. It is nonparametric and is especially appropriate for ordinal data or for detecting monotonic relationships that may be nonlinear.
The two most common rank correlation coefficients are Spearman's rho and Kendall's tau. Spearman's rho is defined
Kendall's tau is based on the relative ordering of pairs. It equals (C - D) / [n(n-1)/2], where
Interpretation of rank correlations is straightforward: values near 1 indicate a strong positive monotonic relationship, values