Ranked data and quantiles (continued)
In general quantiles (or percentile values) can be estimated as:
Pj = X(n+1)j
where Pj is the jth quantile (percentile),
(n+1)j is the rank of X, and
n is the number of observations
Note: non-integer values of (n+1)j require interpolation between adjacent X values