Hey all,
I have alphabetical variable that contains letters such as AA, Aa, BB, etc and I want to generate a new variable such as the following:
gen creditrating_var= 1 if credit rating =="AA"|"Aa"|",Ba"
how can I generate a code to accomplish this task?
thanks for your help.
I have alphabetical variable that contains letters such as AA, Aa, BB, etc and I want to generate a new variable such as the following:
gen creditrating_var= 1 if credit rating =="AA"|"Aa"|",Ba"
how can I generate a code to accomplish this task?
thanks for your help.
Comment