0

I have a very confusing question about quantile. I have a sample here and its Q1 and Q3 should be like this: enter image description here But when I summary the vector in R I got a different result:

summary(A)
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#>    1.00    2.75    4.50    4.50    6.25    8.00

I got different results of Q1 and Q3. OMG what happened? Thanks many in advance.

Chris
  • 87
  • 10

1 Answers1

2

There are lots of ways to calculate quantiles. Read the documentation

?quantile

And you'll see how R does it by default and what the other... 8 or so options are.

Dason
  • 60,663
  • 9
  • 131
  • 148