Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Listing var1 if var* equals X


From   Lars Folkestad <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Listing var1 if var* equals X
Date   Tue, 31 Jan 2012 14:32:17 +0100

Dear List

I am sure there is a quick fix for this, but i have my data in a wide format and have the following data

Id hospital1 hospital2 hospital3 … hospitalN

I would like to list the id if any of the hospital* equals a given code fx X2

I have tried
. list id if hospital* = X2
But that dos not work.

What am i doing wrong?

lars

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index