Hi, I'm fairly new to stata and would need some help on this.
I'm trying to categorise a string variable into a binary outcome:
The variable is Procedure code with 80 different observation groups e.g. A112,A113,B113
What I'm intending to do is to separate them into a binary outcome e.g. A112,B113 = 0 (not approved procedure) A113,C245 etc = 1 (approved procedure)
Have gone through the stata help and online resources but can't seem to find a way to so . Could anyone provide some help or direct me to the right resources?
Many thanks
I'm trying to categorise a string variable into a binary outcome:
The variable is Procedure code with 80 different observation groups e.g. A112,A113,B113
What I'm intending to do is to separate them into a binary outcome e.g. A112,B113 = 0 (not approved procedure) A113,C245 etc = 1 (approved procedure)
Have gone through the stata help and online resources but can't seem to find a way to so . Could anyone provide some help or direct me to the right resources?
Many thanks

Comment