My guess is that it is much easier to deal with this
upstream by fixing the labels first. Even a complicated
set of labels can be copied fairly easily using
-labvalclone- from -labutil- on SSC, after which
you can -drop- one of the clashing pair.
Nick
[email protected]
Jens Lauritsen
> 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).
>
*
* 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/