Liz's Stata Guide

table

Displays statistics on one variable broken down by the values of one or two other variables. It cannot be abbreviated.

Typical Use:
table varx, c(med varz p10 vary)   - or -
table varx vary, c(max varz)

Examples


. table religion, c(freq mean age med hhsize max hhsize) 

--------------------------------------------------------------
religion  |       Freq.    mean(age)  med(hhsize)  max(hhsize)
----------+---------------------------------------------------
Christian |         254      39.3715            6           35
   Muslim |         840      41.9724            7           35
    Other |           6         31.5            5           18
--------------------------------------------------------------
For each religion, this shows us the number of observations, the average age, the median household size and the maximum household size.

Options

Notes

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