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.
Related Posts with Loop function to order multiple variables together
Easier and faster way to get casewise statistics using tabstat?In my data set, I compare analytes analyzed in a test analyzer (X) to those analyzed in a reference …
Converting Variables to a dummy variableHello, Actually I have three variables in percentage (Formal credit - semi-formal credit - Informal …
Compare quantile ranges between STATA and QgisI have what I assume is a fairly simple problem to solve. I am using Qgis to create maps using quant…
Diff-in-diff collinearity problem with leads and lagsDear Statlist users, This is my first post so I hope I've done everything according to Statalist pr…
Help with Bar graph of three categorical variables and ratesDear Stata Community, I am working with a dataset which has three categorical variables, whether pr…
Subscribe to:
Post Comments (Atom)
0 Response to Loop function to order multiple variables together
Post a Comment