Statalist The Stata Listserver


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

st: variable labels lost due to reshape


From   Jelena Zurovac <jzurovac@u.washington.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: variable labels lost due to reshape
Date   Tue, 13 Jun 2006 15:50:54 -0700 (PDT)

Dear Statalist subscribers,

I am using Stata 9.  After I reshape my data from child-level to mother-level, 
I lose all the variable labels.  This makes sense, since my reshape drops all 
variables and creates new ones from them.  But, losing all the variable labels 
is rather inconvenient.  How can I retrieve them?

I searched ths listserv, and couldn't find the answer.  I tried to use label 
save, but this refers to label values, not variable labels.

It seems that there would be two ways to approach this:
- Force Stata to somehow keep the variable labels (I doubt this is possible) 
- Use some efficient method of retrieving the labels from the original dataset 
and applying after the reshape.  

Your help is most greatly appreciated.  

Jelena Zurovac
Graduate Student
Department of Economics
University of Washington, Seattle

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