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
Dtalink: Coditioning probability matchingHi, I am currently using the Stata dtalink-package in order to match data from two sources. As I cr…
estimating dynamic panel data models when the data set features a moderate N and moderate T.What are the methods of estimation that can be used when the data set features a moderate N and mode…
Why do I get different results for fe and gmm2s estimation using (xt)ivreg2?Dear Statalisters, I am trying to analyze the relationship between corruption and the distribution …
Help replacing individual data from household data, using macros over variable names.Hi there, I have only recently started using Stata to edit data, instead of using the default datas…
Why do I get different results for fe and gmm2s estimation using (xt)ivreg2?Dear Statalisters, I am trying to analyze the relationship between corruption and the distribution …
Subscribe to:
Post Comments (Atom)
0 Response to Renaming multiple string values of a variable
Post a Comment