Maybe also the -relrank- command is of help (or the -mm_relrank()-
Mata function from the -moremata- package). See
. ssc describe relrank
. ssc describe moremata
ben
On Jan 10, 2008 5:03 AM, Alan Neustadtl <[email protected]> wrote:
> help pctile might be useful as well as reading the FAQ title "How can
> I calculate percentile ranks?
> How can I calculate plotting positions?" written by Nick Cox. The
> URL is http://www.stata.com/support/faqs/stat/pcrank.html
>
> Best,
> Alan
>
>
>
>
>
> On Jan 9, 2008 9:09 PM, Yang Lu <[email protected]> wrote:
> > Dear StataList,
> >
> > I understand that if one wants to find values at some particular
> > percentiles of a variable she can use
> >
> > -centile var1, centile(pctile1 pctile2 pctile3)-
> >
> > But what if I have some arbituary values and want STATA to return
> > their percentile? I know I can write a do file to make it automatic
> > but would be surprised if such a syntax did not already exist (though
> > I didn't find it. I use stata 9.) I'm sorry if someone asked this
> > before; I'm new to the list but I did check before I wrote this email.
> > Thanks a lot!
> >
> > Yang
> >
> >
> > --
> > Yang Lu
> > Pardee RAND Doctoral Fellow
> >
> > RAND Corporation
> > 1776 Main St. P.O.Box 2138
> > Santa Monica, CA 90407
> > TEL: +1 310.393.0411 x8453
> > EMAIL: [email protected]
> > *
> > * 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/
> >
> *
> * 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/
>
*
* 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/