Bookmark and Share

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

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

st: how to save the result of percentile using summarize

From   Nobuya Fukugawa <>
Subject   st: how to save the result of percentile using summarize
Date   Sun, 21 Feb 2010 12:22:55 +0900

is it possible to save the result of percentile other than listed
below (e.g. 66th percentile) using "summarize"?
su y,detail
list if y>r(p66)

------stata help copy-------
Saved results

   summarize saves the following in r():

     r(N)           number of observations
     r(mean)        mean
     r(skewness)    skewness (detail only)
     r(min)         minimum
     r(max)         maximum
     r(sum_w)       sum of the weights
     r(p1)          1st percentile (detail only)
     r(p5)          5th percentile (detail only)
     r(p10)         10th percentile (detail only)
     r(p25)         25th percentile (detail only)
     r(p50)         50th percentile (detail only)
     r(p75)         75th percentile (detail only)
     r(p90)         90th percentile (detail only)
     r(p95)         95th percentile (detail only)
     r(p99)         99th percentile (detail only)
     r(Var)         variance
     r(kurtosis)    kurtosis (detail only)
     r(sum)         sum of variable
     r(sd)          standard deviation

thank you in advance.
*   For searches and help try:

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