Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Usage of "?" sign?


From   Ziad El-Khatib <[email protected]>
To   [email protected]
Subject   st: Usage of "?" sign?
Date   Wed, 17 Oct 2007 22:36:37 -0700

Dear STATA lister
basic question, i am trying to recode column with list of names that
have been entered in different ways.

var1
EFA, Panadol
EFV, Panado
Antibiotics, Efavirenz


I am trying to generate new variable var2 to have one value for EFV
gen var2 = var1
recode var (?EFA? = EFV) (?EFV? = EFV) (?Efavirenz? = EFV)

Recode does not accept text, any tips how to go around it?


Thank you in advance and best regards
ziad

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