Hi,
Having a large data, I need to check if any of males misdiagnosed by assigned female-specific ICD10 codes and vice versa. I tried but did not figure it out. I am thinking about local command or macros but not sure if it is the right one or how. Is it okay to enter all males codes as a new variable and similarly for females, because when I did it produced false results? or should the list be in the memory (virtual) without including it in the raw data?
Here is a sample of the data:
Here is a sample of the gender-inked codes (true = 700s codes for females and 120s codes for males):
Female_ICD10_Codes Male_ICD10_Codes
A34 B260
B373 C600
C510 C601
C511 C602
C512 C608
C518 C609
C519 C61
C52 C620
C530 C621
C531 C629
C538 C630
C539 C631
C540 C632
C541 C637
C542 C638
C543 C639
C548 D074
C549 D075
C55 D076
C56 D176
Thanks in advance!
Having a large data, I need to check if any of males misdiagnosed by assigned female-specific ICD10 codes and vice versa. I tried but did not figure it out. I am thinking about local command or macros but not sure if it is the right one or how. Is it okay to enter all males codes as a new variable and similarly for females, because when I did it produced false results? or should the list be in the memory (virtual) without including it in the raw data?
Here is a sample of the data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte Sex str4 Diag1_code 2 "O342" 1 "R104" 1 "K358" 1 "J931" 2 "O249" 1 "I10" 2 "N202" 1 "I249" 1 "K649" 2 "O269" 2 "O800" 1 "I501" 2 "M480" 2 "C509" 1 "Q211" 1 "A239" 2 "N133" 2 "N939" 2 "O800" 2 "I64" 2 "C543" 2 "J988" 2 "O800" 1 "N210" 2 "J459" 1 "A239" 2 "O034" 1 "C169" 2 "O800" 2 "R104" 1 "E111" 1 "J189" 2 "J069" 1 "I739" 1 "K409" 1 "K566" 2 "C509" 1 "U071" 1 "E114" 2 "I214" 2 "O800" 2 "A153" 1 "K358" 2 "O441" 2 "C509" 1 "I219" 2 "N309" 1 "F311" 1 "R572" 2 "K358" end label values Sex Sex label def Sex 1 "Male", modify label def Sex 2 "Female", modify
Here is a sample of the gender-inked codes (true = 700s codes for females and 120s codes for males):
Female_ICD10_Codes Male_ICD10_Codes
A34 B260
B373 C600
C510 C601
C511 C602
C512 C608
C518 C609
C519 C61
C52 C620
C530 C621
C531 C629
C538 C630
C539 C631
C540 C632
C541 C637
C542 C638
C543 C639
C548 D074
C549 D075
C55 D076
C56 D176
Thanks in advance!

Comment