|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: an ordinary two-way table
From
"Ben Jann" <[email protected]>
To
[email protected]
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
only).
. ssc describe labelsof
. ssc describe fre
ben
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |