Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

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


From   "G. Dai" <dgecon@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: about centile and r(c_#)
Date   Wed, 7 Apr 2010 10:42:53 -0700

thanks, Martin and Nick.

On Wed, Apr 7, 2010 at 10:35 AM, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> -centile- numbers its results 1, 2, etc. not in terms of the percents
> you specified. Thus
>
> . return list
>
> will show that after your command r(c_1) and r(c_2) are specified.
> r(c_30) would be specified only if you had asked for 30 or more
> percentiles.
>
> I guess this numbering convention is to avoid precision problems if
> anyone asks for percentiles that do not correspond to integer percents.
>
> Nick
> n.j.cox@durham.ac.uk
>
> G. Dai
>
> 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?
>
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index