Hi
I want to create a new variable (var3) using an existing variable (var2).
Like the attached photo
a, b = 1
c = 2
d, e = 3
I want to make it like this.
How should I use the command in stata 13 ?
It is not necessary to use the "if" command. Array