Skip to content
Prev 15253 / 63421 Next

bug? quantile() can return decreasing sample quantiles for increasing probabilities

On Tue, 22 Feb 2005 21:36:20 +0000, Duncan Murdoch
<murdoch@stats.uwo.ca> wrote :
Just looked at the history of this line, and it appears the code is
the way it is to avoid an error if the value of the vector is
infinite.  For example, we now get the right answer
0%  20%  40%  60%  80% 100% 
 Inf  Inf  Inf  Inf  Inf  Inf 

but with my modification above we wouldn't:
0%  20%  40%  60%  80% 100% 
 Inf  NaN  NaN  NaN  NaN  Inf 

Duncan