Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: an ordinary two-way table

From   "Ben Jann" <>
Subject   Re: st: an ordinary two-way table
Date   Sun, 13 May 2007 03:55:26 +0200

Austin wrote:
... it seems to me that
-tabulate- could have an option -label- (much like option -missing-)
that would make sure that every category of a numeric variable that
has a value label defined for it would be included in the table.  Then
many of these odd tables could be constructed in 2 or 3 easy steps.  I
can envision an easy ado-based solution not using Mata, but using
-label save- and -file read- loops to read off the 4th "word" of the
do-file that results from -label save-.
Have a look at -labelsof- (type -ssc describe labelsof-). It does
exactly what you are thinking of. Furthermore, the -fre- command has
an option to include all labeled values in the table (one-way tables

. ssc describe labelsof
. ssc describe fre

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index