Statalist


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

Re: st: RE: Assigning labels of 1 file into another file?


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: RE: Assigning labels of 1 file into another file?
Date   Thu, 13 Sep 2007 12:06:09 -0400


I think -descsave- can do this (-findit descsave- ) using the dofile() option. It will create a do file that re-applies all variable labels and value labels.

M Blasnik

----- Original Message ----- From: "Ziad El-Khatib" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 13, 2007 11:57 AM
Subject: Re: st: RE: Assigning labels of 1 file into another file?



Hi Sven-Oliver,
Thank you for your kind reply.
I guess I am not sure about the difference in terms here but great you
pointed it out, but I will explain myself in giving an example:
1. how can I save the codes assigned for each variable and use them
in the other file, example:
How to save the code of variable 'studyid' that means "Patient ID number", etc..

and

2. how to save the values of variables, for example:
How to save the value of variable 'education' as 1) highschool, 2)
university, 3) illiterate


I want to use lists 1 and 2 in the other file because 100% the same
except it has extra records.
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index