Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: question about substracting a part of a string in a dummy variab


From   "Erik Brouwer" <ebrouwer20@hotmail.com>
To   owner-statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   st: question about substracting a part of a string in a dummy variab
Date   Mon, 07 Nov 2005 17:16:41 +0100

Dear Users

I have a question. I have a string variable containing a short description (3 till 5 words per observation). What I would like to do is to make a dummy which equals 1 if the string variable contains the word "action". The word "action" is not allways on the same place. Can someone help me?

thanks

Erik Brouwer

_________________________________________________________________
Play online games with your friends with MSN Messenger http://messenger.msn.nl/

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index