Statalist


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

st: RE: Tabulate


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Tabulate
Date   Wed, 8 Oct 2008 18:14:52 +0100

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

Nick
[email protected] 

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index