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

st: re: different result each time

From   Kit Baum <>
Subject   st: re: different result each time
Date   Thu, 25 Sep 2008 07:40:35 -0400

< >
Neil said

Your different results may be down to the -merge- you are performing if
one (or indeed both) of the datasets that you are merging does not have
uniquely identifiable observations based on the variable you are merging
on, so check the output after the merge very carefully.

Indeed, this is likely to be the problem. In my book (p.58) there is a section "The dangers of many-to-many merges" that speaks to this very issue. Merges should always make use of the -unique-, -uniqmaster- or - uniqusing- option to prevent some truly bizarre results in the case where the merge keys are not unique in either dataset.

Kit Baum, Boston College Economics and DIW Berlin
An Introduction to Modern Econometrics Using Stata:

* For searches and help try:

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