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

st: Searching stringvar


From   "Jason Payne" <[email protected]>
To   <[email protected]>
Subject   st: Searching stringvar
Date   Tue, 10 Feb 2004 10:37:39 +1100

Dear all,

I too am relatively new at STATA, trying to find my way around the differences in the syntax language from SPSS.

Anyway, I was wondering if there was a way in STATA syntax to search a string variable for keywords and create an indicator variable (dummy) where 1=keyword found and 0=keyword not found?

Thanks in advance,

Jason Payne
AUSTRALIA

____________________________________
Jason Payne
Violence, Property Crime and Drugs
Australian Institute of Criminology
GPO Box 2944 Canberra ACT 2601

E-mail: [email protected]
Tel +61 2 6260 9283 Fax +61 2 6260 9201

Visit the AIC homepage www.aic.gov.au



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index