Hi all,
I have a string variable in my dataset that contains a list of secondary diagnosis codes (e.g J13, J09.5 etc). I am trying to create a new numeric variable that should be 1 if certain codes (J13,J14,J15) are included in my secondary diagnosis codes. Which command can I best use for this?
I have a string variable in my dataset that contains a list of secondary diagnosis codes (e.g J13, J09.5 etc). I am trying to create a new numeric variable that should be 1 if certain codes (J13,J14,J15) are included in my secondary diagnosis codes. Which command can I best use for this?

Comment