Reverse the tiedrank function

I want to calculate the Spearman rank correlation for a bivariate dataset by using the tiedrank function to rank the value for both of my variables. However, Spearman rank tests require that the highest values have the lowest rank and the lowest values have the highest rank. The tiedrank function returns the highest rank for the highest values and the lowest rank for the lowest values. Is there a way to reverse the tiedrank function?
Thanks!

답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2016년 10월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by