Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: quartiles


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: quartiles
Date   Tue, 11 May 2004 22:29:39 +0100

The help for -codebook- explains that 
-codebook- makes a guess at what are 
(in effect) categorical variables for which 
summary statistics are _not_ calculated, as 
in your example. You 
can force the calculation of quartiles 
by using the -tabulate()- option. 

All this, however, is a bit of 
a red herring. You want quartiles. 
As other people have explained, there 
are other ways of getting at them which 
are more direct. -codebook- can be 
very useful for other reasons, naturally. 

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of peter harper
> Sent: 11 May 2004 22:20
> To: statalist@hsphsun2.harvard.edu
> Subject: RE: st: quartiles
> 
> 
> Clive
> Thanks for your suggestion. When I tried
> codebook pro1
> It did not give me centiles, as it did for you, just
> type
> range
> unique value
> tabulation etc.
> Thanks
> 
>  --- n1700166 <Clive.Nicholas@newcastle.ac.uk> wrote:
> > Peter Harper wrote:
> > 
> > > Can tell me the commands to obtain a bottom and
> > top
> > > quartile. Thanks in advance
> > 
> > You could also use -codebook- towards the same end:
> > 
> > 
> > . sysuse auto, clear
> > (1978 Automobile Data)
> > 
> > . codebook mpg
> > 
> >
> --------------------------------------------------------------
> ----------------
> > --
> > mpg                                                 
> >               Mileage 
> > (mpg)
> >
> --------------------------------------------------------------
> ----------------
> > --
> > 
> >                   type:  numeric (int)
> > 
> >                  range:  [12,41]                    
> >  units:  1
> >          unique values:  21                      
> > missing .:  0/74
> > 
> >                   mean:   21.2973
> >               std. dev:    5.7855
> > 
> >            percentiles:        10%       25%      
> > 50%       75%       90%
> >                                 14        18       
> > 20        25        29
> > 
> > C.
> > 

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