Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: How can I merge two datasets with multiple unique identifiers?


From   Ulrich Kohler <kohler@wzb.eu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How can I merge two datasets with multiple unique identifiers?
Date   Thu, 20 Jan 2011 16:40:54 +0100

. merge 1:m country year using politynew

Am Donnerstag, den 20.01.2011, 10:32 -0500 schrieb Qursum Qasim:
> Hi all,
> 
> I am trying to merge two datasets using the country and year variables
> but one of the datasets also has a unique id for each observation.
> When I try to merge using the command:
> merge 1:1  country year using politynew
> 
> I get the error:
> variables country year do not uniquely identify observations in the using data
> 
> What can I do to merge the two datasets without eliminating the unique
> id from the using dataset?
> Thanks!!
> 
> Best,
> Qursum Qasim
> 
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index