Thanks to Kit Baum, a new Mata package called -mf_quantile-
is available form SSC.
-mf_quantile- provides Mata functions to compute quantiles
and empirical cumulative distribution functions.
The functions are:
quantile(x,w,p): returns p-quantiles of x
median(x,w): returns the median of x
iqrange(x,w): returns the inter-quatile range
ecdf(x,w): returns the empirical cumulative
distribution function
relrank(x,w,q): returns the relative ranks of q in the
distribution of x
colrunsum(Z): auxiliary function to compute running
sums
To install the package, type
. ssc install mf_quantile
After that, to view the helpfile, type
. help mata quantile()
or
. help mf_quantile
ben
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/