Hello,
My data before reshaping :
After this command : reshape long var, i(obs_num) j(label) string
Please, how can I make sure that the horizontal order from the first dataex example is kept vertically after the reshape ? i.e. it should be id, time, A1, A2 and not an alphabetical order. I tried before the reshape:
But it's not a sequential order since I have string variables, so it's going to be 1, 10, 11, ... 2, 20...
Can someone help me please?
My data before reshaping :
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str10(varid vartime varA1 varA2) byte obs_num "identifyer" "time" "email" "phone numb" 1 end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte obs_num str4 label str10 var 1 "A1" "email" 1 "A2" "phone numb" 1 "id" "identifyer" 1 "time" "time" end
Code:
rename * var#*, addnumber
Can someone help me please?

Comment