Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: merge

Subject   st: merge
Date   Fri, 28 Jul 2006 10:37:33 +0200

Dear all

I'm using Stata 9.1. In DBQ.dta, variables Year and Quarter uniquely identify
all observations (i.e. quarterly data). However, in DBM.dta this is not the
case since this database contains monthly data.

. merge Year Quarter using DBQ.dta, uniqusing sort

Yields the following error message:
variables Year Quarter do not uniquely identify observations in the master data

Although Stata's observation is correct, I wonder why this error occurs.
Actually, Stata's error message is what I wanted to express in the -merge-
command... ("1:n merge")

Can you replicate this error (even for Stata 9.2)? How can I assure that Stata
returns an error when the "using dataset" is not uniquely identified by

Thanks a lot for looking into this matter.

Kind regards,

This message was sent using IMP, the Internet Messaging Program.

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index