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: identifying records where one of many variables contains one of many codes
From
"Steve Martin" <[email protected]>
To
<[email protected]>
Subject
st: identifying records where one of many variables contains one of many codes
Date
Wed, 16 Mar 2011 17:57:59 -0000
I have a rather long list of five digit alpha-numeric codes (eg W41.3,
W91.8, W98.7...).
How do I keep those records where at least one of twelve variables (eg
opcs1, opcs2,..., opcs12) contains at least one of the aforementioned
alpha-numeric codes?
Thanks.
Steve
*
* 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/