From therneau at mayo.edu  Wed Apr 30 19:00:33 2014
From: therneau at mayo.edu (Therneau, Terry M., Ph.D.)
Date: Wed, 30 Apr 2014 12:00:33 -0500
Subject: [Rd] Quantile issue
Message-ID: <3dfcdc$gjrdrk@ironport9.mayo.edu>

This is likely yet another instance of round off error, but it caught me by surprise.

tmt% R --vanilla
  (headers skipped, version 3.0.2 on Linux)

> load('qtest.rda')
> length(temp)
[1] 3622
> max(temp) >= quantile(temp, .98)
   98%
FALSE

I can send the file to anyone who would like to understand this more deeply.
The top 3% of the vector is a single repeated value.

Terry Therneau



[Rd] Quantile issue
Therneau, Terry M., Ph.D.