Statalist


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

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


From   "Abdel Rahmen El Lahga" <rahmen.lahga@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: How to Calculate 25th and 75th Percentile in Stata
Date   Tue, 3 Jul 2007 22:40:55 +0200

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/



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