On Tue, May 6, 2014 at 4:33 PM, Kip Murray <[email protected]> wrote:

>    jtfns 1 2 2 4 6  NB. correct
> 1 1.5 2 5 6
>    five 1 2 2 4 6  NB. doesn't work if repetitions in data
> 1 1 2 5 6
>
>
On Tue, May 6, 2014 at 4:33 PM, Kip Murray <[email protected]> wrote:

>    five 1 2 2 4 6  NB. doesn't work if repetitions in data
> 1 1 2 5 6
>
>
It's interesting that R gives even a different result (
http://en.wikipedia.org/wiki/Five-number_summary#Example_in_R)

> z <- c(1,2,2,4,6)
> fivenum(z)
[1] 1 2 2 4 6
> summary(z)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
      1       2       2       3       4       6


For the 1st quartile, Excel gives 2 with QUARTILE.INC and 1.5
with QUARTILE.EXC
For the 3rd, Excel gives 4 and 5 respectively

So R is following the "INC" method

http://stats.stackexchange.com/questions/28123/quartiles-in-excel is an
interesting read
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to