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
Find attrition at personal levelDear Stata users, I am using an unbalanced panel dataset. Here is an example of my dataset. hhid …
Simple question on asdoc and label lengthsHi all, I am using asdoc to export some simple summary stats to word, using labels as variable name…
Variable labels and frmttableI am using frmttable to generate a summary table. As far as I can see the option varlabels should au…
Baseline hazard function for Piecewise constant modelI need to plot baseline hazard functions for a piecewise constant model. The problem I find is that …
Meta Command for prevalencesI'm trying to run a meta-analysis using the metan command for a rate of the progression outcome vari…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming multiple string values of a variable
Post a Comment