Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: sort


From   "Hans J. Baumgartner" <[email protected]>
To   [email protected]
Subject   st: sort
Date   Thu, 13 Jan 2005 12:56:40 +0100

Dear statalist,

to describe my data, I decided to use the collapse command.

Since I have quite a few variables I am unhappy by sorting them in alphabetic order. Is it possible to sort them in a user-defined order?

The table 1 shall become table 2
table1
_var _stat
age 50
exp 14
school 5

table2
_var _stat
age 50
school 5
exp 14

All suggestions are welcomed.
Thanks
Hans

--
Hans J. Baumgartner DIW Berlin
German Institute for Economic Research
Dept. Public Economics
K�nigin-Luise-Str. 5; 14195 Berlin; Germany
Tel.: +49/30/89789-307
Fax.: +49/30/89789-114
http://www.diw.de
http://www.hansbaumgartner.de


*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index