Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: sort fivenum

Quantlet: quantile
Description: Computes the empirical quantiles of a given array.

Usage: s = quantile (x, a)
Input:
x array
a level for the quantiles (has to be in [0,1])
Output:
s for each column in x the empirical quantiles

Note:

Example:
library("xplore")
randomize(0)
x = normal(200, 2, 2)
quantile(x, #(0, 0.5, 1))

Result:
Contents of q
[,,1,1,1,1,1,1]
[1,] -2.7802 -3.0646
[2,] -0.064325 -0.041017
[3,] 2.4442 2.5595
[,,2,1,1,1,1,1]
[1,] -2.7564 -2.7252
[2,] 0.051381 0.18606
[3,] 1.9993 4.2496



Author: T. T. Koetter, 19960207 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006