I have a string variable CODEX which has the underlying cause of death coded first, and any secondary causes of death following. The cause of deaths codes are from the ICD-10 codes (International Classification for Disease). All the causes of death are separated by spaces or commas.
I am attempting to separate this string variable CODEX into separate cause of death variables DEATH1, DEATH2 etc. Any suggestions for potential codes for this would be greatly appreciated as I am not too sure how to approach this issue.
Related Posts with Separating a string variable into separate variables
tabm varlist output takes the variable labelsHi, When I execute Code: tabm variables , the outputs take the variable labels instead of variab…
A 2-stage crossover design with repeated measurements : threeway-interaction?Dear STATA list user, I am currently working with a 2-stage crossover design testing a new innovatio…
Drop Specific DataI am working with CRSP/WRDS data. I have company names in one column, dates/months (1990-2010) in ot…
Linear mixed effects with unbalanced, survey-weighted, longitudinal dataHello, I have panel household survey data that is a longitudinal study of individuals, so an unbalan…
Generate a variable containing the values of other variablesHi, I know this may seem simple but I just can't figure it out. I have 3 variables: Time, serial, c…
Subscribe to:
Post Comments (Atom)
0 Response to Separating a string variable into separate variables
Post a Comment