tiedrank
Rank adjusted for ties
Description
[
returns the rank of each value in R
,tieadj
] = tiedrank(X
)X
. The function also returns an
adjustment for ties between values that is used by the signrank
and ranksum
functions, and in the computation of the
Spearman distance metric (see Distance Metrics). If any values in
X
are tied, tiedrank
returns their average
rank.
[
returns the rank of the each value in R
,tieadj
] = tiedrank(X
,1)X
and adjustments for ties that are
used in the computation of Kendall's Tau Coefficient.
[
returns the rank of each value in R
,tieadj
] = tiedrank(X
,0,1)X
and adjustments for ties in
X
that are used in the Ansari-Bradley Test. The
function computes the ranks from each end, so that the smallest and largest values are rank
1, the next smallest and largest values are rank 2, and so on.
Examples
Input Arguments
Output Arguments
Algorithms
tiedrank
treats NaN
s in X
as
missing values and ignores them. The rank of NaN
s in R
is NaN
.
Extended Capabilities
Version History
Introduced before R2006a
See Also
ansaribradley
| corr
| partialcorr
| ranksum
| signrank