Returns the interquartile range
Category: Descriptive Statistics
IQR ( value-1 <, value-2... >)
value
specifies a numeric constant, variable, or expression of 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 |
Functions:
'MAD Function' on page 642
'PCTL Function' on page 694