Chapter Contents

Previous

Next
RANGE

RANGE



Returns the range of values

Category: Descriptive Statistics


Syntax
Arguments
Details
Examples

Syntax

RANGE(argument,argument, . . .)

Arguments

argument
is numeric. At least two arguments are required. The argument list may 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


Chapter Contents

Previous

Next

Top of Page

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