Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: -esttab- problem


From   ajjee <ajjee1@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: -esttab- problem
Date   Tue, 5 Apr 2011 15:00:29 -0700 (PDT)

Dear All

I am having a problem with -esttab- installed through -estout-. In the
following do file, Table 1 is generated but -esttab- for table 2 gives the
following error: too many base levels specified

When I re-write the regression with -xi:qui logit.....-, both tables are
generated without any problem but it takes twice much time as compared to
the previous.  I'm using Stata/SE 11.2 for Windows (32-bit). Please help.

ajjee


do file

global xlist pii sex  I.age64 I.edur  I.polr unemp rtd distance2 
global clist I.country I.year 
global res  se star(* .1 ** .05 *** .01) b(%9.3f) stats( N r2_p ll) replace

*******************Table 1*************************************
qui logit opt $xlist maxinf $clist if fh==1 & year<2005,nolog robust
cl(country)
eststo GA04WOI

qui logit opt $xlist I.inc maxinf $clist if fh==1 & year<2005,nolog robust
cl(country)
eststo GA04WI

*********************Table 2***********************************
qui logit opt $xlist I.ecoexp I.hyperinf $clist  if fh==0 & year>2003,nolog
robust cl(country)
eststo GB09

qui logit opt $xlist I.ecoexp I.hyperinf $clist if year>2003 ,nolog robust
cl(country)
eststo GAB09

*****************Tables****************************************

esttab  GA04WOI GA04WI using Table_1.rtf,$res mti("GA04WOI" "GA04WI" ) 
esttab  GB09  GAB09 using Table_2.rtf, $res mti("GB09"  "GAB09" ) 

--
View this message in context: http://statalist.1588530.n2.nabble.com/esttab-problem-tp6243957p6243957.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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   |   Site index