ORDINAL Function


Returns any specified order statistic

Category: Descriptive Statistics

Syntax

ORDINAL ( count,argument,argument , )

Arguments

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.

Details

The ORDINAL function sorts the list and returns the count th argument in the list.

Examples

SAS Statements

Results

x1=ordinal(4,1,2,3, ˆ’ 4,5,6,7);

3




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net