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]

st: Conserving variables and value labels while reshaping wide to long


From   natalia malancu <[email protected]>
To   [email protected]
Subject   st: Conserving variables and value labels while reshaping wide to long
Date   Wed, 22 May 2013 21:18:14 +0200

Hi guys!

I have the following data structure

id da03 da04 ea03 ea04

where d refers to wave 1 of my data and e refers to wave 2.

after reshaping I am left with the variables a03 and a04.

How would a loop structure look like in order to preserve both the
variable and value labels?

Thanks,
Natalia
*
*   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