Statalist The Stata Listserver


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

RE: st: Is there a way to get tabulate or table to output a frequency of all of the variables - not just 2 or 3?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Is there a way to get tabulate or table to output a frequency of all of the variables - not just 2 or 3?
Date   Sat, 10 Jun 2006 16:02:15 +0100

If Friedrich's interpretation of the 
question is correct, then using -tab1- 
or -tab2- is another answer. 

On the other hand, if Buddy wants 
one table based on several variables, 
then check out -table-, or -groups-
from SSC. 

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

Friedrich Huebler
 
> You can creates the tables with a -foreach- loop.
> 
> sysuse auto
> local vars "foreign make price mpg"
> foreach v of local vars {
>   tab `v'
> }
> local vars "make price mpg"
> foreach v of local vars {
>   tab `v' foreign
> }
 
buddyb
 
> > Is there a way to get STATA to output a frequency for
> > all of the variables (as well as a two-way table of
> > one variable by all the other variables)? Right not it
> > just allows me to tabulate or table only 3 or so
> > variables.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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