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
Can first difference estimator alleviates serial correlation in panel data?Hi Statalist, I am working on a state-level panel. Using -xtserial- tests for serial correlation an…
Time Series Statistical Analysis of Crime Rates Between 2018 and 2021Hello, I was wondering if you could assist me with a number of issues i am experiencing in relation…
Contradiction in the -inteff- outcomeHello, I have calculated the user-written command "inteff" after a logit regression to check my int…
Fixed effects with multiple region-level observationsHi, I am using survey level data for the US which is divided at the county level, and I have multip…
Prognostic modellingHello, Can someone explain to me how to do a prognostic model on stata? I am not too familiar with …
Subscribe to:
Post Comments (Atom)
0 Response to Loop function to order multiple variables together
Post a Comment