Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[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 <nakashimapedrolist@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <klein.daniel.81@gmail.com>:
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index