Stata Summarize
The summarize command computes summary statistics.
Contents
Usage
summarize foo bar baz summarize foo bar baz if foo==1 summarize foo bar baz in 1/10 by foo: summarize foo bar baz
Add the detail option for even more statistics.
Stored Results
summarize stores the following statistics:
Name |
Statistic |
Requires detail option? |
r(N) |
count |
|
r(mean) |
mean |
|
r(skewness) |
skewness |
yes |
r(min) |
minimum |
|
r(max) |
maximum |
|
r(sum_w) |
sum of weights |
|
r(p1) |
1st percentile |
yes |
r(p5) |
5th percentile |
yes |
r(p10) |
10th percentile |
yes |
r(p25) |
25th percentile |
yes |
r(p50) |
50th percentile |
yes |
r(p75) |
75th percentile |
yes |
r(p90) |
90th percentile |
yes |
r(p95) |
95th percentile |
yes |
r(p99) |
99th percentile |
yes |
r(Var) |
variance |
|
r(kurtosis) |
kurtosis |
yes |
r(sum) |
sum |
|
r(sd) |
standard deviation |
|