Stata的。如何按自定义顺序订购变量?

时间:2013-06-08 20:53:33

标签: stata

我有以下内容:

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

有没有办法切换变量的位置,所以看起来像是:

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

不是order _all。我不需要按字母顺序排序,我需要定制订购。

1 个答案:

答案 0 :(得分:5)

order state stateID year income race education怎么样?