CHEBURASHKA
CHEBURASHKA

Reputation: 1713

Stata. How to order variables in a customized order?

I have the following:

state income stateID race year education
 IL     200    12     2    12    15
 ML     230    32     12    2    10
 ....................................

Is there any way to switch variables' spots, so that it appears like:

state stateID  year  income  race  education
  IL     12    12     200     2     15
  ML     32    2      230     12    10
 ....................................

NOT order _all. I do not need alphabetical ordering, I need customized ordering.

Upvotes: 1

Views: 11321

Answers (1)

dimitriy
dimitriy

Reputation: 9470

How about order state stateID year income race education?

Upvotes: 5

Related Questions