Statalist


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

st: RE: Tabulate


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Tabulate
Date   Wed, 8 Oct 2008 18:14:52 +0100

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index