Re: [R] quantile() returns a value outside the data range

2007-08-22 Thread Henrik Bengtsson
Hi, yes, it is all about numerical accuracy; x - c(6.402611, 6.402611, 6.420587) x001 - sapply(1:9, function(type) quantile(x, probs=0.01, type=type)) names(x001) - NULL print(x001) ## [1] 6.402611 6.402611 6.402611 6.402611 6.402611 ## [6] 6.402611 6.402611 6.402611 6.402611 diff(x001) ## [1]

[R] quantile() returns a value outside the data range

2007-08-21 Thread Jenny Bryan
Hello, I am getting an unexpected result from quantile(). Specifically, the return value falls outside the range of the data, which I wouldn't have thought possible for a weighted average of 2 order statistics. Is this an unintended accuracy issue or am I being too casual in my comparison (is