Statalist The Stata Listserver


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

st: How to save the percentile values in the data set


From   "Marcella Sapun" <[email protected]>
To   <[email protected]>
Subject   st: How to save the percentile values in the data set
Date   Thu, 18 Jan 2007 11:32:33 -0500

Hi Statalisters:

I got the "percentiles" of a variable from a dataset using the
following function:

.centile X1, centile(10(10)100)

                                                                       
   -- Binom. Interp. --
    Variable |     Obs   Percentile      Centile        [95% Conf.
Interval]
-------------+---------------------------------------------------------------------
      X1        |    3422     10              7.274669        6.805159 
  7.66793
                  |                 20            10.44581       
10.02666    10.77111
                  |                 30            12.57353       
12.25625    12.92279
                  |                 40            14.58967       
14.28929    14.96141
                  |                 50            16.42887       
16.17517    16.68656
                  |                 60            18.75103       
18.28065    19.26674
                  |                 70             21.79939       
21.20626    22.40335
                  |                 80             26.40771       
25.62188    26.94399
                  |                 90             35.33956       
33.75231    36.4518
                  |                100          103.9972       
103.9972    103.9972*

My question is how to save these "centile" values in the data for each
observation so that I can relate the 10th percentile for values of X1
within the range of  6.805159  &  7.66793 ? 

something like:
obs       pctindicator  pctilevalue       X1
100             10                 7.27        6.91

Is this possible to do, if my question is making any sence?

Thanks  a lot.

Marcella
 



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