Statalist


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

Re: st: merging datasets and getting different N in resulting dataset if I run several times


From   Neil Shephard <[email protected]>
To   [email protected]
Subject   Re: st: merging datasets and getting different N in resulting dataset if I run several times
Date   Fri, 14 Aug 2009 16:54:45 +0100

On Fri, Aug 14, 2009 at 4:46 PM, Woolton Lee<[email protected]> wrote:

> The id variables do not uniquely identify observations in the master
> or using dataset.

This will be a problem, you might want to consider using the -joinby-
command as opposed to -merge-

I _very_ much doubt it is a bug in the -merge- command, its almost
definitely an artefact of your data.

Neil



-- 
"The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data." ~ John Tukey (1986), "Sunset salvo". The American
Statistician 40(1).

Email - [email protected]
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index