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
Remove gaps between the y-axis first or last ticks and horizontal frames of a box plotHi Stata box plot experts; I am sketching a box plot using Stata. These are my codes for y-axis lab…
Removing duplicate matchesHi, I have used vmatch to match my control group to my treatment group based on two characteristics…
Problems with Panel Data AnalysisHello everyone, I'm dealing with panel data analysis and still confused about few things I have a t…
calculating a formula in stataHello everyone I have a sample of 100 rnormal() in stata, am going to calculate this formula in stat…
Probit model with fixed effectsDear all, I am estimating a probit model with individual-level data on sickness and district-level …
Subscribe to:
Post Comments (Atom)
0 Response to Renaming multiple string values of a variable
Post a Comment