Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Reorder variables in dataset, based on its values


From   Pedro Nakashima <[email protected]>
To   [email protected]
Subject   Re: st: Reorder variables in dataset, based on its values
Date   Mon, 17 Dec 2012 12:39:05 -0200

Thank you, it worked perfectly well ..

The reason is purely data visualization.

This code you wrote is very useful, for example, if the variables are
months and if the observations are cpi items or payroll components, if
we wanted to see in which months there were the greatest variations on
specific items.


2012/12/17 daniel klein <[email protected]>:
> vorter -v1-v5 ,after(othervariable)
>
> // Reorder by obseravtion 2 in ascending order
>
> vorter v? in 2 ,after(othervariable)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index