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   Friedrich Huebler <huebler@rocketmail.com>
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   Fri, 9 Jun 2006 21:33:57 -0700 (PDT)

Buddy,

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
}

Friedrich

--- buddyb <buddyb_99@yahoo.com> wrote:
> Hi,
> 
> 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.
> 
> Thanks,
> Buddy


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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