Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Formatted 3-way tables


From   Richard Moverare <richard.moverare@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Formatted 3-way tables
Date   Mon, 26 Mar 2012 10:46:52 +0200

Dear Statalist,

I guess this could be solved in some neat way, but I haven't found
anysolution. I would like to create 3-way tables that looks something
like:

webuse byssin
table workplace smokes race, row

But I would like column percentages, a "total" column (i.e. smokes yes
or no, regardless of race). I have looked in the manual for -tabout-
but I haven't seen any solution there. I understand that I can
generate new variables that give all categories and then use
-tabulate-, but I have to generate a great number of tables so it
isn't a feasible way. This is such a basic feature in all other
statistical softwares, so I assume there is some easy solution I
haven't found. Any help would be greatly appreciated.

All the best,
Rick M.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index