Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Shorthand way of applying an IF to several variables.


From   Rod Hunter <[email protected]>
To   [email protected]
Subject   st: Shorthand way of applying an IF to several variables.
Date   Wed, 19 Nov 2003 19:32:13 +1100

I have, say, 500 observations and 300 variables. I want to do a TABSTSAT that has an IF condition such that any observation is not to be included in the tabstat if the value of any variable is zero or missing. I know how I can do this the long way, but could someone tell me how, or where I can find out how I can use an operaion that would save me having to list each of the 300 variables in the IF condition?

Many thanks,

Rod Hunter


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