TableOfReal: To Correlation (rank)

A command that creates a (Spearman rank-order) Correlation object from every selected TableOfReal object. The correlations are calculated between columns.

Algorithm

The Spearman rank-order correlation coefficient rij between the elements of columns i and j is calculated as the linear correlation of the ranks:

rij = Σk (Rki - i) (Rkj - j) / (√ (Σk(Rki - i)2) √ (Σk(Rkj - j)2)),

where Rmn is the rank of element m in column n, and n is the mean of the ranks in column n.


© djmw 20151209