

   IQR {base}                                   R Documentation

   TThhee IInntteerrqquuaarrttiillee RRaannggee

   DDeessccrriippttiioonn::

        computes interquartile range of the `x' values.

   UUssaaggee::

        IQR(x, na.rm = FALSE)

   DDeettaaiillss::

        Note that this function computes the quartiles using
        the `quantile' function rather than following Tukey's
        recommendations, i.e., `IQR(x) = quantile(x,3/4) -
        quantile(x,1/4)'.

        For normally N(m,1) distributed X, the expected value
        of `IQR(X)' is `2*qnorm(3/4) = 1.3490', i.e., for a
        normal-consistent estimate of the standard deviation,
        use `IQR(x) / 1.349'.

   RReeffeerreenncceess::

        Tukey, J. W. (1977).  Exploratory Data Analysis.  Read-
        ing: Addison-Wesley.

   SSeeee AAllssoo::

        `fivenum', `mad' which is more robust, `range', `quan-
        tile'.

   EExxaammpplleess::

        data(rivers)
        IQR(rivers)

