Find And Replace In Stata. Feb 27 2018 Anyway I DO know the basic search and replace functions like ssearch_termreplace_termg add c if you want to confirm each replacement. Then we write a replace statement for each of the three categories that we wish to create.
Active 3 years 9 months ago. Gen outcome2 0 replace outcome2 1 if icd C189. Ask Question Asked 3 years 9 months ago.
You create a new variable in Stata using the generate command usually abbreviated gen.
Lets make another change to the data in memory by creating a variable called price4 that is four times the price. How to find and replace this string in Stata. String result rgxReplaceinput Z. You have to use a regex object like this.
