Statalist


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

Re: st: Different Results for the same estimation


From   Scott Merryman <[email protected]>
To   [email protected]
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
<[email protected]> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index