Hello all. I have an ICD10 code variable that has about 6000 different values in string format. I also have a list of about 1000 ICD10 code values that are conditions of interest that I want to turn into a variable of do they have the conditions of interest yes/no. Other than repeatedly writing a replace command for each ICD10 code of interest is there a way to tell stata to replace if the ICD10 variable is = and then list all relevant codes?
Related Posts with Renaming multiple string values of a variable
how to choose one variable with non-missing value among 3 variablesDear all, I have a set of data for firm deals. For each deal, there are 3 completion dates, Complet…
Fitstat gives error messageHi all, When I use fitstat after a ologit regression, I get this message: Code: . fitstat Measure…
remove * from stringHello I have a variable Value, which is the value of some assets. The data is imported from excel a…
Count how often an ID occurs in a columnHi, I have a question which should be fairly easy to answer. I have a variable in my dataset called…
Generating mean by interacting categorical variablesHi all I would like to generate a new variable newvar that is the mean of the dummy variable dummy b…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming multiple string values of a variable
Post a Comment