Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Merge with "value labels" of same name but differnet contents


From   Jens Lauritsen - EpiData Association <JL@epidata.dk>
To   statalist@hsphsun2.harvard.edu
Subject   st: Merge with "value labels" of same name but differnet contents
Date   Tue, 12 Oct 2004 09:26:37 +0200

I tried to find an ado for merging datasets to handle the situation that the files have the same names for value label definitions but the contents were different.
e.g.
dataset one: label v1 is: 1 yes 2 no applied to variable d1
dateset two: label v1 is : 1 small 2 medium 3 large applied to variable s1

When merging data either d1 or s1 gets wrong labels.
Any suggestions apart from going back to the definition in the old files and renaming there ? (before I write an ado to handle this).

Jens Lauritsen

Jens M. Lauritsen, Consultant,MD. PhD.
The EpiData Association,
Enghavevej 34, DK5230 Odense M. Denmark
e-mail: info@epidata.dk
For E-mail news on EpiData: Http://www.epidata.dk/php/maillist.php
EpiData is freeware
*
* 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