sum (short for summarize)
gives you summary statistics for the data.
Example:
sum
Variable | Obs Mean Std. Dev. Min Max
-----------+------------------------------------------------------
age | 322991 45.26263 17.96758 16 85
sex | 322991 1.523104 .4994667 1 2
grade92 | 322991 39.8775 2.800101 31 46
race | 322991 1.378283 1.27769 1 21
marital | 322991 3.287677 2.624325 1 7
-----------+------------------------------------------------------
uhourse | 184656 38.99408 11.23143 0 99
unionmme | 179148 1.876382 .3291467 1 2
ownchild | 204105 .8503319 1.131901 0 10
occ00 | 222243 4342.378 2555.252 10 9840
wage_re | 111588 17.53119 11.7035 2.616624 243
-----------+------------------------------------------------------
edyrs | 322991 12.55375 2.398792 1 20
Advanced syntax
sum age, det
Categories: Lab1