I have a variable with a row of ICD codes. Some of them are repeated
One registration looks like this "I120 N185 I509 D649 J159 A402 K658 I109 J960 N185 I509 I109 R104X I120 I509 N185"
There are duplicates of I120, N185 and I159. How can I remove them?
I tried this https://stackoverflow.com/questions/...he-same-string but it seems it only remove duplicates when they follow one after the other.
Related Posts with Removing duplicate words from a string variable
Extension files of OUT.file using X-12 ArimaHi, I am a novice user of Stata and in dire need of help. I am studying the monthly beer sales in bo…
Generate unique ID of 4 digitsHello, My data doesn't have a unique identifier and I want to generate a unique id of each row of 4…
OveridHello dear analysts I used to use overidentifying test by running the following HTML Code: ivregre…
Recoding rules based on string variableHello Statalist, I have a particularly unique, perhaps esoteric question. I am attempting to create…
Alternative analyses to xtologit/xtoprobit for score as dependent variable and dummy as independent variableHi everyone, I’m new to Stata (using version 15.1 on Windows 10) and regard my statistical knowledg…
Subscribe to:
Post Comments (Atom)
0 Response to Removing duplicate words from a string variable
Post a Comment