Percentile values for each column of a matrix.
Syntax: @colpctiles(m[, o])
m: matrix, vector
o: (optional) string
Return: matrix, vector
Returns a matrix where each column contains the percentiles of the values of the corresponding column of m
The option o controls the direction of the ranking: āaā (ascending - default) or ādā (descending).
Examples
Let MAT be a matrix with two columns. Then
= @colpctiles(mat)
and
= @hcat(@pctiles(mat.@col(1)), @pctiles(mat.@col(2)))
are equivalent.
Cross-references