a function for spearman rank correlation analysis