On 12/22/06, Lucy Shum <[email protected]> wrote:
Hi all,
How do I specify more than one criterion for commands such as tabulate/
histogram ?
Can one do "-if inlist" twice for say, tabulate?
If not, how does one go about specifying two (or more) criteria in a
command?
Lucy
You can use inlist twice in an if statement, like this:
sysuse auto
tab price if inlist(mpg, 12, 14, 15) | inlist(trunk, 10, 11, 27)
regards
seb
*
* 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/