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]

Re: st: merge-by-observation in stata 10


From   Michael Norman Mitchell <Michael.Norman.Mitchell@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: merge-by-observation in stata 10
Date   Sat, 08 May 2010 10:20:52 -0700

Dear Frederick

  The Stata 10 equivalent to merge file a and file b on observation is...

use a, clear
merge using b

As always, one should be very careful in performing merges by observation.

Best regards,

Michael N. Mitchell
See the Stata tidbit of the week at...
http://www.MichaelNormanMitchell.com

On 2010-05-08 2.09 AM, Frederick Guy wrote:
In Stata 11, one of the merge variants is a one-to-one merge by
observation:

merge 1:1 _n

is there an equivalent in Stata 10?

Thanks

Frederick

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