[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: twoway tables

From   Kit Baum <>
Subject   st: Re: twoway tables
Date   Sun, 8 Jul 2007 07:39:00 -0400

foreach v of varlist ind1 ind2 ind3 {
	tab dep `v'

You could also store the varlist in a local macro and reference that.

Kit Baum, Boston College Economics and DIW Berlin
An Introduction to Modern Econometrics Using Stata:

On Jul 8, 2007, at 2:33 AM, statalist-digest wrote:

SAS generates two-way tables w respect to a single dependent variable in
this handy way:

tables dep*(ind1 ind2 ind3)

1) Can Stata do the same thing on a single command line instead of
requiring me to specify each table separately?

- tab2 - generates all possible tables, unhandy when you've got a lot of
independent variables
-tabsum- , -table- , -statsby- , and -tabstat- don't seem to allow this
*   For searches and help try:

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