Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Assign variable labels after importing data from Microsoft Excel


From   Iulian Ihnatov <iulian.ihnatov@uaic.ro>
To   statalist@hsphsun2.harvard.edu
Subject   st: Assign variable labels after importing data from Microsoft Excel
Date   Mon, 19 Mar 2012 20:30:27 +0200

Dear Statalisters,
I need to import a Microsoft Excel sheet content (panel data) in Stata 12 that looks as follows: id time var1 var2 var3 .....
label_id    label_time       label_var1    label_var2       label_var3 ...
1 1960 123 1234 234
...

My problem is to use the values of the second row as value labels for the variable names in the first row. The - import excel - part is the easy one. I looked through the variable label management modules on the SSC archive and could't find an appropriate package to solve my problem. Thus, any help would be highly appreciated.

--
Iulian IHNATOV
--------------------------
Alexandru Ioan Cuza University of Iasi

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index