Statalist


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

st: RE: Re: reverse variable order


From   "Buzz Burhans" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: reverse variable order
Date   Wed, 18 Jul 2007 10:03:30 -0600

Thanks again Kit.  I erred in not declaring in my original question that I
was using Stata 9.2 

Your insight into how to accomplish this was most useful.

Thanks.

Buzz


Buzz Burhans, Ph.D.

Dairy-Tech Group
Twin Falls, ID
Phone: 208-320-0829
Fax: 208-735-1289 

Email: [email protected]
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kit Baum
Sent: Wednesday, July 18, 2007 7:05 AM
To: [email protected]
Subject: st: Re: reverse variable order

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/

*
*   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