Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: re: percentiles: correction


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: percentiles: correction
Date   Mon, 25 Jul 2005 20:02:48 -0400

If you

pctile pcts = dowclose, nq(100)

it will do what I said it would do.

This program will also handle missings, if / in, etc.

. invpctile dowclose if dowclose < 2000, nq(100) value(700)

. return list

scalars:
            r(pctile) =  30


Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index