Hello.
I need to group the cases into two by the IDs using the last character (N or P).
How do I do this in stata.
A sample of the study IDs is listed below.
Thank you.
[CODE]
* Example generated by -dataex-. For more info, type help dataex
clear
Sty_id
"ADH001N"
"ADH001P"
"ADH002N"
"ADH002P"
I need to group the cases into two by the IDs using the last character (N or P).
How do I do this in stata.
A sample of the study IDs is listed below.
Thank you.
[CODE]
* Example generated by -dataex-. For more info, type help dataex
clear
Sty_id
"ADH001N"
"ADH001P"
"ADH002N"
"ADH002P"

Comment