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
[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of peter harper
> Sent: 11 May 2004 22:20
> To: [email protected]
> 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 <[email protected]> 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/