quantiles {siggenes} | R Documentation |
Computes the desired quantiles of a sample and returns them.
quantiles(x,prob)
x |
vector of data |
prob |
vector of desired probability levels. Values must be between 0 and 1 inclusive. |
Consider a sample containing n observations. If α n is a non-integer, then the α quantile will be given by the kth smallest observation x(k), where k is the smallest integer larger than α n. If α n is an integer, then the α quantile will be computed by 0.5(x(k)+x(k+1)).
a vector containing the desired quantiles of the sample
Holger Schwender, holger.schw@gmx.de