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
3 by 3 Matrix of Count VariablesHi All, I want to create a 3 X 3 matrix from 9 combinations of count variables Sev and Rch. The thr…
problems in state equations of sspaceHi. I'm trying to estimate the natural interest rate. Unfortunately, I have run into the following c…
Combining variablesHi I have a question on how to combine multiple variables of the same category into single new varia…
Match Values between Two VariablesHi Statalisters, I have a sample data and want to match values between different variables. Here ar…
LoopHello guys, I have a monthly panel data for periods 1996m1 to 2018m12. Using the code below, I have…
Subscribe to:
Post Comments (Atom)
0 Response to Separating a string variable into separate variables
Post a Comment