Command Reference : Function Reference : Function Reference: R
  
 
@ranks
Ranking of values.
Determine the ranking associated with each value.
Syntax: @ranks(x[, y, z, s])
x: series, vector, matrix
y: (optional) string literal
z: (optional) string literal
s: (optional) sample string or object when x is a series
Return: series, vector, matrix object
The optional arguments control the behavior of the ranking procedure
The y option controls the direction of the ranking:
“a” (ascending - default) or “d” (descending)
The z option controls tie-handling with rankings handled according to the setting:
“i” (ignore), “f” (first), “l” (last), “a” (average - default), “r” randomize.
For series calculations, EViews will use the current or specified workfile sample.
Examples
vector y = @ranks(x, "a", "i")
returns the unique integer ascending ranking for the data in vector x, ignoring ties.
Cross-references
See also @pctiles.