I want to select patients with "IAM" in the studydescription_all variable . The "studydescription_all" variable is a text variable.
I'm wondering why "CT Trauma C/A/P & T/L Spine C+" was selected?
Regards,
Code:
gen Head_IAM=. replace Head_IAM=1 if (regexm(studydescription_all, ("[i/I][a/A][m/M]")))
Code:
studydescription_all Head_IAM CT Trauma C/A/P & T/L Spine C+ 1 CT TempBone/IAM(+/-Brain) - C 1 CT IAM 1
0 Response to regexm
Post a Comment