Functions and CALL Routines |
Returns the interquartile range.
Category: |
Descriptive Statistics
|
IQR(value-1 <,
value-2...>)
|
-
value
-
specifies a numeric constant, variable,
or expression for which the interquartile range is to be computed.
If all arguments have missing values,
the result is a missing value. Otherwise, the result is the interquartile
range of the non-missing values. The formula for the interquartile range is
the same as the one that is used in the UNIVARIATE procedure. For more information,
see
Base SAS Procedures Guide.
SAS Statements |
Results |
iqr=iqr(2,4,1,3,999999);
put iqr;
|
2
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.