Statalist The Stata Listserver


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

Re: st: an ordinary two-way table


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: an ordinary two-way table
Date   Fri, 11 May 2007 11:00:00 -0400

Nick--
I agree with much of what you say, as usual, but 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-.  If I have a chance, I'll
write up a quickie version later today...

You could even make a version that makes SAS-like tables, where
categories with the same label are collapsed into the same row or
column, but I doubt I would provide that functionality (call me
paternalistic).

On 5/11/07, Nick Cox <n.j.cox@durham.ac.uk> wrote:
The problem with tables is analogous to that of
graphs.

In essence tabulation in Stata is a bit of a mess
but then what is the alternative? One enormous command
with numerous bells and whistles and
with a manual entry 150 pages long that will do
all these special things too?
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index