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: filter string variable


From   victor <[email protected]>
To   [email protected]
Subject   st: filter string variable
Date   Mon, 25 Mar 2013 04:02:50 -0700 (PDT)

Hi,

I have a dataset which contains the amount of contributions from various
lobbies to a member of congress. However, for my research I am only
interested in the contributions from the agricultural lobby. Therefore, I
would like to filter in a way that keeps only the observations which contain
words like “agri” or “farm” etc. in it. Since I have to do this for various
members of congress on several occasions I would like to make some sort of
code for it. So far I am unable to work something out.

Can anyone help me out on this?

Thanks in advance,
Victor




--
View this message in context: http://statalist.1588530.n2.nabble.com/filter-string-variable-tp7580328.html
Sent from the Statalist mailing list archive at Nabble.com.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index