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
How to keep a variable with 3 consecutive yearshi everyone, i have this database Code: nationalidnumber city naceprimary nacesecon…
Cox Regression tvc command interpretationWe are looking at the "Sabadell score" as a predictor of long term outcome at the point of discharge…
Esttab rounding optionI am outputting regression results using esttab and am using the options b(a2) and se(a3) to round t…
Interactions in instrumental variable regressionHi statalist, I am using ivreg2 to carry out my instrumental variable analysis. This is my model wi…
How to store rho's and sigma2 in selmlog?I'm using selmlog and want to store the rho's and sigma2 reported in its output. I've tried storing …
Subscribe to:
Post Comments (Atom)
0 Response to Separating a string variable into separate variables
Post a Comment