perctl - computation of percentils

Calling Sequence

=perctl(x,y)

Parameters

Description

Compute the matrix p of percentils (in increasing order, column first) of the real vector or matrix x indicated by the entries of y, the values of entries of y must be positive integers between 0 and 100. p is a matrix whose type is length(y) x 2 and the content of its first column are the percentils values. The contents of its second column are the places of the computed percentiles in the input matrix x.

Examples

Author

Bibliography

HYNDMAN,Rob J. and FAN Yanan, Sample Quantiles in Statistical Packages, The American Statistician, Nov.1996, Vol 50, No.4