Statalist


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

st: RE: RE: Tabulate


From   "Lachenbruch, Peter" <Peter.Lachenbruch@oregonstate.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Tabulate
Date   Wed, 8 Oct 2008 12:54:34 -0700

I have been thinking about the same problem for some time and wrote a
short extension of tab which is essentially this.  Bobby Gutierrez has
modified my clumsy work and it will be an addition to Stata some time
soon (I hope).

Tony

Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
Sent: Wednesday, October 08, 2008 10:15 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: Tabulate

foreach v of var var1-var20 { 
	tab `v' gender 
} 

Nick
n.j.cox@durham.ac.uk 

Meryle Weinstein, Ph.D.

Is there a way to do multiple two way tables besides tab2. I want to
create
two-way tables by gender for about 20 variables and tab2 creates tables
for
each of the 20 other variables by each other, which is way too
unwieldly.


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

*
*   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   |   What's new   |   Site index