Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: reverse variable order


From   Kit Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: reverse variable order
Date   Wed, 18 Jul 2007 09:04:44 -0400

Well, the plot thickens...turns out my exhortation to use Jann's routine is not necessary in Stata 10, in which there is indeed a function invtokens(). It did not exist in Stata 9.2, which is why Ben Jann wrote one. So correct, pre-Stata 10, use Jann's mm_invtokens(); in Stata 10, invtokens() will work.

Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


On Jul 18, 2007, at 2:33 AM, Buzz wrote:



I had to make one additional small change to get it to run:

v2=invtokens(v[cols(v)..1])

I changed to:

v2=mm_invtokens(v[cols(v)..1])

I thank you very much for the lesson, it works nicely.

I appreciate the help, and more, the chance to learn a new trick, from both
you and Maarten.
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index