Returns any specified order statistic
Category: Descriptive Statistics
ORDINAL ( count,argument,argument , )
count
is an integer that is less than or equal to the number of elements in the list of arguments.
argument
is numeric. At least two arguments are required. An argument can consist of a variable list, preceded by OF.
The ORDINAL function sorts the list and returns the count th argument in the list.
SAS Statements | Results |
---|---|
x1=ordinal(4,1,2,3, ˆ’ 4,5,6,7); | 3 |