Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Xtreg, fe Error: insufficient observation


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Xtreg, fe Error: insufficient observation
Date   Wed, 10 Jul 2013 10:32:31 +0200

On Tue, Jul 9, 2013 at 6:23 PM, Tate wrote:
> When I write the command:
> xtreg  flu_i_tot stock_t1 u_dest gini old_dep_ra c_lav l_prod pileu
> s_prot_exp, fe, if stato==10 & stato==5 & stato==6 & stato==13
> Stata gives me the error message insufficient observation.

The problem is your -if- condition. As you have written it now an
observation is included if it is simultaneously from state 10, 5, 6,
and 13, and obviously no observation meets that criterium and 0
observations is not quite sufficient to estimate an -xtreg- model,
which is what the error message complaints about. You could replace
-&- (and) with -|- (or), or write that -if- condition as -if
inlist(stato, 10, 5, 6, 13)-.

Hope this helps,
Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index