Consider
. sysuse auto, clear
. su mpg [w=weight], detail
(analytic weights assumed)
Mileage (mpg)
-------------------------------------------------------------
Percentiles Smallest
1% 12 12
5% 14 12
10% 14 14 Obs 74
25% 16 14 Sum of Wgt. 223440
50% 19 Mean 20.11153
Largest Std. Dev. 5.400251
75% 23 34
90% 28 35 Variance 29.16271
95% 30 35 Skewness 1.121803
99% 35 41 Kurtosis 4.694955
. di r(p90) - r(p10)
14
That may be what you want.
Nick
[email protected]
Cinzia Rienzo
> i have to compute the gap centile (90-10) for the variable
> "res1st_zs"
> and weighed by the variable "hwt" for time series data.
> But STATA does not allow me weighed centile, i also tried the
> "dialog"
> but i didn t get the results i wanted.
*
* 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/