Summary Statistics

In this page, I’ll share Stata commands for summary statistics.

Opening data with use command

use "your file name.dta", clear

[,clear] is telling Stata to clear any other data that you have opened in Stata.

Looking at variables

  • Histogram is helpful
histogram varname

hist varname, percent bin(15) xtitle("Your Variable")
hist varname, percent width(10) xtitle("Your Variable")
hist varname, freq xtitle("Your Variable")

Measures of central tendancy: mean, median, mode

summarize varname
sum varname, detail

graph box varname

tabulate varname
tab varname, m
Next