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

st: percentiles


From   "Don Spady" <[email protected]>
To   <[email protected]>
Subject   st: percentiles
Date   Fri, 11 Oct 2002 09:46:19 -0600

Dear all
  I am trying to use the command "pctile" to get percentiles of the values
in a variable.  The values are individual ages.
I have used the commands:
pctile  pct=age
pctile pct=age, genp(pctAge)
but when I run it and then list the first 10 instances I get

. list pct age in 1/10

           pct       age
  1.         9        14
  2.         .        17
  3.         .         1
  4.         .        14
  5.         .         5
  6.         .        12
  7.         .        14
  8.         .         7
  9.         .         9
 10.         .         0

The ages run from 0 to 17 and are fairly evenly distributed.
?? Why don't I get any values in the pct column and what does the '9' mean.
Many thanks for any help.


Donald Spady
Dep't of Pediatrics, University of Alberta
(780) 407-1244

Nature has no reset button.


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