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


From   "Steve Martin" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: identifying records where one of many variables contains one of many codes
Date   Thu, 17 Mar 2011 13:55:25 -0000

Thanks Nick.

Steve

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: 16 March 2011 18:15
To: '[email protected]'
Subject: st: RE: identifying records where one of many variables contains
one of many codes

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/

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