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

 From "stata_user stata_user" To statalist@hsphsun2.harvard.edu Subject Re: st: RE: How to Calculate 25th and 75th Percentile in Stata Date Wed, 04 Jul 2007 14:44:41 +0100

```
centile x, centile(25  50)

```
```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.

(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

> 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/
```
```_________________________________________________________________
Win tickets to the sold out Live Earth concert!  http://liveearth.uk.msn.com

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