Liz's Stata Guide

Commands: Basic Stats

This page covers commands to produce basic information about the data and summary statistics on variables.

describe
Provides a summary (number of observations and variables, brief description of each variable) of the dataset.
describe

list
Lists values of variables
list varx vary if varz > 0

summarize
Produces a basic summary (number of observations, mean, standard deviation, min and max) of variables.
sum varx

tabulate
Provides a breakdown of the values taken on by a variable, or by two or more variables.
tab varx   - or -
tab varx vary   - or -
tab varx, sum(vary)

table
Displays statistics on one variable broken down by the values of one or two other variables.
table varx, c(med varz p10 vary)   - or -
table varx vary, c(max varz)

tabstat
Displays multiple statistics for multiple variables.
tabstat varx vary varyz, s(mean range median)

contact: djiboliz@gmail.com
last modified: 19 April 2007