Indices of n-th smallest values (multiple).
Returns workfile or row indices corresponding to the n-th minimum of the elements of x.
Syntax: @imins(x, n[, s])
x: data object
n: integer
Return: vector
If
n is not an integer, the integer floor
will be used.
Return the actual workfile or row indices corresponding to
where the order statistics
represent the data ordered from low to high.
For series calculations, EViews will use the current or specified workfile sample.
Examples
Let x be a series of length 5 whose elements are 4, 2, 1, 4, 2, 5.
Then
= @imins(x, 1)
returns a vector containing (3) the set of indices corresponding to the value 1.
Similarly
= @imins(x, 2)
returns a vector containing (3, 2, 5) the set of indices corresponding to the values 5 and 4.
Cross-references