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

From |
Kit Baum <baum@bc.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: Re: running the same do-file but getting different results |

Date |
Sun, 10 Feb 2008 11:17:45 -0500 |

This can occur because of a many-to-many merge (see that heading in my book or Statalist archives). Try using uniqmaster, uniqusing or unique options on the merges as appropriate for your data. You will probably find that where you expect uniqueness to apply in one dataset or the other it will fail.

Kit

Kit Baum, Boston College Economics and DIW Berlin

http://ideas.repec.org/e/pba1.html

An Introduction to Modern Econometrics Using Stata:

http://www.stata-press.com/books/imeus.html

On Feb 10, 2008, at 2:33 AM, statalist-digest wrote:

i have just noticed the following problem. I start Stata by clicking on the .dta file and run the series of do files and get some results. Now in the same session of Stata if I use -clear- and then read the data set again with -use- command and run the same set of do files I get some difference in results. The difference in result is mostly noticed for the -count- commands (with some complicated -if- conditions). Since the do files are large, I am not printing them in this mail. I would appreciate if some of you could throw some light on the problem if at least from some generic point. I am saying "from some generic point" because I can understand that with the above information it will be difficult to give a specific solution to my problem.

* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

- Prev by Date:
**Re: st: Questions about svy commands** - Next by Date:
**RE: st: importing txt file changes format of variable** - Previous by thread:
**st: Fwd: Compare means more than two groups** - Next by thread:
**st: testing autocorrelation or serial correlation in the FEIV models** - Index(es):

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