Hello
I urgently need help with the loop function in STATA to order multiple variables together.
In my dataset, I have gender, region, race, database (+200 other variables) and their encoded counterparts at the bottom namely gender01, region01, race01, database01.
I want to put all numeric variables after their string counterparts like the following:
gender, gender01, region, region01, race, race01 and so on.
I know how to do 1 by 1 but it should be possible to do them all together.
Any help will be highly appreciated.
Thank you.
0 Response to Loop function to order multiple variables together
Post a Comment