Chapter Contents

Previous

Next
ORDINAL

ORDINAL



Returns any specified order statistic

Category: Descriptive Statistics


Syntax
Arguments
Details
Examples

Syntax

ORDINAL(count,argument,argument, . . .)

Arguments

count
is an integer that is less than the number of elements in the list of arguments.

argument
is numeric. At least two arguments are required. The argument list may consist of a variable list, preceded by OF.


Details

The ORDINAL function sorts the list and returns the countth argument in the list.


Examples

SAS Statements Results
x1=ordinal(4,1,2,3,-4,5,6,7);
3


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.