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

© Copyright 1996–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index