Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: about centile and r(c_#)


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: about centile and r(c_#)
Date   Wed, 7 Apr 2010 19:30:39 +0200

<>
The answer is in the -return list- provided following -ret li-:


. ret li

scalars:
             r(n_cent) =  2
                  r(N) =  74
               r(ub_2) =  6232.006871602771
               r(lb_2) =  4912.708093501433
                r(c_2) =  5705
               r(ub_1) =  4679.134062873679
               r(lb_1) =  4110.565083233664
                r(c_1) =  4424.5


Stata counts from 1, instead of labelling with the centile requested...


HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of G. Dai
Sent: Mittwoch, 7. April 2010 19:27
To: [email protected]
Subject: st: about centile and r(c_#)

hi all,

I'm lit bit confused by centile. for example
************************
.clear
.sysuse auto

. centile price, c(30   60)

                                                       -- Binom. Interp. --
    Variable |     Obs  Percentile      Centile        [95% Conf. Interval]
-------------+-------------------------------------------------------------
       price |      74         30        4424.5        4110.565    4679.134
             |                 60          5705        4912.708    6232.007

*************************

then I want to know the values of centiles, say

*****************************
. di r(c_30)
*****************************
I get missing values.

while

**************************
. di $S_7
4424.5
**********************

so, why r(c_30) doesn't work and why $S_7 works?

thanks,

Guang
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index