replace var2 = "medecine" if strpos(var1, "medeci")
Also, scan the list of functions to see what you
are missing.
Nick
[email protected]
Ziad El-Khatib
> i am used to Excel to use * sign before and after a word, when looking
> for a word in middle of sentence, for example
>
> countif (A1:A10, "*medeci*")
>
> anyway it is possible to use something similar in STATA for
> command -replace-?
> like replace var2 = "medecine" if var1 == "*medeci*" ?
*
* 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/