Stata Summarize
-summarize- computes summary statistics.
See here for other similar commands.
Contents
Usage
Try:
summarize foo bar baz
The command takes if and in filters and is by-able.
A number of useful statistics are returned as scalars:
r(N)
r(min)
r(max)
r(sum)
r(sum_w)
r(mean)
r(Var)
r(sd)
The meanonly option is useful for programming and for working with very large datasets. Printed output is suppressed
The detail option calculates even more statistics. Note that it is incompatible with meanonly. The additional scalars are:
r(skewness)
r(kurtosis)
Nth percentiles as r(pN)
For example, r(p50) is the 50th percentile a.k.a. the median.
