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
Logged variables w/value of 0 : drop observations or weaken the model?[Note: PhD student new to Stata and still somewhat of a beginner with stats analysis] In my dataset…
AUC in cutpt vs roctabGood morning, I use . cutpt to calculate cut points (reference ranges) for laboratory diagnostic met…
Foreach loop does not computeHello all, I am currently analyzing survey data where I have data on e.g. the expected unemployment…
Row names with esttab using over()Hi all, I'm using Stata 17 and the user-written esttab command from SSC to create/export tables to …
What does "adj" in this code mean?I faced a code a below and I do not understand what does adj mean here Code: predict adj, residual…
Subscribe to:
Post Comments (Atom)
0 Response to Separating a string variable into separate variables
Post a Comment