Statalist


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

Re: st: Different Results for the same estimation


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Different Results for the same estimation
Date   Tue, 15 Sep 2009 13:28:55 -0500

On Tue, Sep 15, 2009 at 1:17 PM, Johannes Schoder
<johannes.schoder@soi.uzh.ch> wrote:
>
> I found the bug:
>
> Since I am using the following command before the estimation:
> bysort County disease: keep if _n==1
> Stata probably kicks out different obervations eacht time.
> Does someone knows how to avoid that?

Pehaps:

sort county disease, stable
by county disease: keep if _n==1

Scott
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index