Index of maximum value.
Workfile or row index corresponding to the maximum of the elements of x.
Syntax: @imax(x[, s])
x: data object
s: (optional) sample string or object when x is a series and assigning to a series
Return: number
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 1, 3, 5, 4, 2. Then
= @imax(x)
returns 3 the (non-unique) index corresponding to the value 5.
Cross-references