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
coding and generating variables CEO-TMT sociodemographic similarity, CEO-TMT shared experience and faultlinesHello everyone, I'm a student and I'm currently having some issues with coding and generating the v…
regression to estimate beta per companyHi, I'm quite new to stata and face a problem. I want to use a for loop to run through my variables…
tobit test for homoskedasticityFrom what i understand, conventional OLS heteroskedasticity tests can't be applied for Tobit regress…
collapsing the expanded rows keeping only oneHi I have expanded my data making 11 rows for some reasons as below. Now, I just want to keep one ro…
Year Dummies for a durationHello, I have data which is as below. ISO_O is the country, StartYear and EndYear are the years of …
Subscribe to:
Post Comments (Atom)
0 Response to Loop function to order multiple variables together
Post a Comment