RANGE Function


Returns the range of values

Category: Descriptive Statistics

Syntax

RANGE ( argument,argument ,...)

Arguments

argument

  • is numeric. At least one nonmissing argument is required. Otherwise, the function returns a missing value. The argument list can consist of a variable list, which is preceded by OF.

Details

The RANGE function returns the difference between the largest and the smallest of the nonmissing arguments.

Examples

SAS Statements

Results

x0=range(.,.);

.

x1=range(-2,6,3);

8

x2=range(2,6,3,.);

4

x3=range(1,6,3,1);

5

x4=range(of x1-x3);

4




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