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]

Re: st: tabulate: one variable against two others?


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: tabulate: one variable against two others?
Date   Mon, 20 Dec 2010 11:45:08 +0000 (GMT)

--- On Mon, 20/12/10, Laura R. wrote:
> I would like to compare two tables, and therefore it would
> be nice to have them as one table or the two side by side.
> 
> But the data would be better comparable with one glance if
> there was one table with the columns
> 
> female(no weight) | male(no weight) | row total(no weights)
> |
> female(weight) | male(weight) | row total(weight)
> 
> Is that possible in Stata? Thanks for any suggestions.

Not easily. The most flexilbe way of creating tables is to
-collapse- the data and than use -list- (easier) or -tabdisp-
(prettier), see -help collapse-, -help list-, and -help tabdisp-.
You would probably need to go that route, to get the kind of 
table you are looking for 

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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