Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Tabulate if


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Tabulate if
Date   Tue, 29 Jun 2010 19:01:29 +0100

... if inlist(X, "name1", "name2", "name3") 

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

Hobst

The command: tabulate X Y if X == "name1"     will give me the tabel
only for
"name1".

How do i get a tabel for name1, name2 and name3

i tried this:  tabulate X Y if X == "name1""name2""name3"    , but it
doesnt
work.. How can i do that? Thank you

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index