IQR Function


Returns the interquartile range

Category: Descriptive Statistics

Syntax

IQR ( value-1 <, value-2... >)

Arguments

value

  • specifies a numeric constant, variable, or expression of which the interquartile range is to be computed.

Details

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 .

Examples

SAS Statements

Results

  iqr=iqr(2,4,1,3,999999);   put iqr;  
  2  

See Also

Functions:

  • 'MAD Function' on page 642

  • 'PCTL Function' on page 694




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