Hello,
I am trying to get my results (answer_*) all in one new column. For example, ID==1 is to be assigned the value that is present in answer_1. The variables answer_* has suffix same as the ones under ID that they have to be matched with.
The answer that I should get is the variable All_answer (which I created manually). For example, For ID==1, answer_1==13, so All_answer==13.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(ID answer_1 answer_2 answer_3 All_answer) 1 . 11 . 13 2 13 . . 11 3 . . 12 12 end
Any help will be appreciated.
Thank you,
Mohana
Comment