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

st: Re: reshape


From   baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: reshape
Date   Sat, 08 Feb 2003 12:04:13 -0500

--On Saturday, February 8, 2003 2:33 -0500 Sarah wrote:

a03income
b03income
c03income
d03income
e03income

a12ed
b12ed
c12ed
d12ed
e12ed

etc.

where a,b,c,d,e stands for wave. I want to:

reshape long [many variables], i(id) j(wave) string

but, of course, Stata seems to be looking to the end of my variables for
the wave identifier when mine are at the beginning.  I have been trying
to  use my limited programming skills to move the letter from the
beginning to  the end on all of the variables, but haven't been able to
do it.
Not necesssary--see description of the use of @ in reshape. E.g. one can say
a@income, e@ed, etc. and it will look in the middle of the variable name for the part that varies systematically.

Kit

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