Quantcast

xtile command; Stata 10

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

xtile command; Stata 10

pouya_e
This post has NOT been accepted by the mailing list yet.
Greetings,

I cannot find out why the xtile command in Stata does not give me approximately equal number of observations for each quantile :


. xtile quintileDSO=DSO, n(5)

.
. ta quintileDSO

5 quantiles |
     of DSO |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |        427       21.58       21.58
          2 |        401       20.26       41.84
          3 |        385       19.45       61.29
          4 |        455       22.99       84.28
          5 |        311       15.72      100.00
------------+-----------------------------------
      Total |      1,979      100.00

.

Loading...