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: RE: identifying records where one of many variables contains one of many codes


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: identifying records where one of many variables contains one of many codes
Date   Wed, 16 Mar 2011 18:15:03 +0000

I guess everything hinges on the precise meaning of "rather long". 

I'd start by studying Kit Baum's FAQ 

FAQ     . . . . . . . . . . . Defining group characteristics to create subsets
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C. F. Baum
        12/01   How do you efficiently define group characteristics
                in your data in order to create subsets?
                http://www.stata.com/support/faqs/data/characteristics.html

Nick 
[email protected] 

Steve Martin

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?

*
*   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