|
⇤ ← Revision 1 as of 2023-06-09 14:58:48
Size: 1982
Comment:
|
Size: 1980
Comment: Rewrite
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| The '''`summarize`''' command computes summary statistics. | '''`-summarize-`''' computes summary statistics. |
| Line 28: | Line 28: |
| `summarize` stores the following statistics: | `-summarize-` stores the following statistics: |
| Line 58: | Line 58: |
Stata Summarize
-summarize- 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 |
|
