Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

R: st: RE: How to Calculate 25th and 75th Percentile in Stata


From   "Carlo Lazzaro" <carlo.lazzaro@tin.it>
To   <statalist@hsphsun2.harvard.edu>
Subject   R: st: RE: How to Calculate 25th and 75th Percentile in Stata
Date   Wed, 4 Jul 2007 11:01:42 +0200

Dear AbdelRahmen El Lahga,

obviuosly agreeing with Nick's advice, please find below a further way to
get p25 and p75 in Stata:

centile (variable), centile (25 75).

HTH and Kind Regards,

Carlo 

-----Messaggio originale-----
Da: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Abdel Rahmen El
Lahga
Inviato: marted́ 3 luglio 2007 22.41
A: statalist@hsphsun2.harvard.edu
Oggetto: Re: st: RE: How to Calculate 25th and 75th Percentile in Stata

I agree Nick's reply. Below is one way to calculate p25 and p75
sysuse auto
quietly su price , d
scalar per25=r(p25)
scalar per75=r(p75)
scalar list
HTH

2007/7/3, Nick Cox <n.j.cox@durham.ac.uk>:
> It doesn't matter how new you are to Stata, or
> even the world.
>
> You should (please) learn
>
> (1) to use Stata's own on-line facilities
> (2) to ask more specific questions.
>
> . search percentile
>
> gives lots of ways of doing it. -summarize- is one.
>
> Nick
> n.j.cox@durham.ac.uk
>
> AttaUllah Shah
>
> > Please help me in calculating the 25th and 75th percentiles
> > in 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/
>


-- 
AbdelRahmen El Lahga
*
*   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/



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