tiedrank
Ranks with average values for ties.
📝Syntax
R = tiedrank(X)
[R, tieadj] = tiedrank(X)
[R, tieadj] = tiedrank(X, kendall)
[R, tieadj] = tiedrank(X, kendall, bidirectional)
📄Description

tiedrank computes ranks along the first dimension and assigns average ranks to tied values. NaN values are ignored and keep NaN ranks.

When kendall is true, tieadj contains the three tie-adjustment terms used by Kendall rank correlation. When bidirectional is true, ranks are assigned from both ends of the sorted data.

💡Examples
X = [-2 1 3 1 4];
[R, tieadj] = tiedrank(X)
🔗See Also
ranksumsignrankfriedmankruskalwallis
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub