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" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] Per conto di Abdel Rahmen El
Lahga
Inviato: marted� 3 luglio 2007 22.41
A: [email protected]
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 <[email protected]>:
> 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
> [email protected]
>
> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index