spearman()

Description:

Calculate Spearman’s correlation coefficient between two vectors.

Syntax:

spearman(A,B)

Note:

The function calculates the Spearman’s correlation coefficient between vector A and vector B. Default value of parameter B is to(A.len()).

Parameters:

A

A vector

B

A vector

Return value:

A numeric value

Example:

 

A

 

1

=[3,5,2,8]

 

2

=[4,6,2,4]

 

3

=spearman (A1,A2)

4

=spearman (A1)