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

st: Re: weirdness in merging


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: weirdness in merging
Date   Thu, 27 Feb 2003 12:57:36 -0500

By default, -merge- will not overwrite any existing data even if it is
missing values.  You need to specify the update option in your merge
command.

Michael Blasnik
[email protected]

----- Original Message -----
From: "Huiber Gabi (nat1gxh)" <[email protected]>
To: <[email protected]>
Sent: Thursday, February 27, 2003 12:22 PM
Subject: st: weirdness in merging


> Hello all,
>
> My problem should be simple. I have a file A, and two temporary files
"`B'"
> and "`C'".
>
> I have two variables in A, call them a and b, by which I am merging file A
> first with "`B'", then with "`C'". I do so because "`B'" and "`C'" consist
> of four variables each: a, b, c and d. I want to get c and d into A. Files
> "`B'" and "`C'" match separate subsets of the values of a and b, but the
> matches add up exactly to the full set A, so at the end of these two
simple
> merge operations, A should be wider by two non-missing variables: c and d.
>
> It doesn't work, and I don't see why. My code goes like this:
>
...snip...


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