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
Dates in StataI am trying convert some dates in quarters. I am doing this by going into the variables manager and …
creating table following multiple imputation with svy suiteHello. Is it possible to create tables using "collect" series of commands using mi estimate:svy, su…
Adding Number of Observations Label to Stacked Bar ChartHi all, I'm trying to make a stacked bar chart that shows the number of observations within each gr…
Computing a cumulative scoreHi, I have the following sample of data. I have an indicator of 1 and 0 in once column and I want t…
Dynamic Panel EquationHello I am trying to build a Dynamic Panel Equation with the following information - Variables: Y, X…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming multiple string values of a variable
Post a Comment