Bookmark and Share

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

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

Re: st: esttab error - too many base levels specified

From   Richard Herron <[email protected]>
To   [email protected]
Subject   Re: st: esttab error - too many base levels specified
Date   Mon, 19 Mar 2012 12:21:30 -0400

My (naive) understanding of this issue is that using the -i- prefix to
generate dummies on the fly can create different base level years in
each regression.

My general solution is to generate the dummies outside of the
regression, then drop the dummies from the -esttab- output with the
-indicate()- option. If all of my year dummies have the prefix
"year_", then I would use -indicate(year FE = year_* o.year_*)-.

Although the -eststo- package is common, please provide the the source
for user-written packages. Here -esttab- is from the -eststo- package
on SSC. It helps in troubleshooting.

HTH. Please give this a try and let us know. Also, I am interested in
solutions from more sophisticated users.

On Mon, Mar 19, 2012 at 11:00, Deborah Goldschmidt <[email protected]> wrote:
> Hello,
> I'm running a bunch of regressions, storing the results, and trying to
> output the results using esttab. Whenever I run my regressions and include
> state or year dummies, esttab gives me the error "too many base levels
> specified" (even though the dummies aren't included in the table).  If I run
> the regressions without the state & year dummies, there's no problem. Is
> there any way to fix this, so that I can include the dummies in my analysis
> and still get the table I want?
> Thank you!
> debbie
> here is some of my code:
> eststo clear
> eststo y1Reg: reg y1 law i.state i.year, cluster(state)
> eststo y2Reg: reg y2 law i.state i.year, cluster(state)
> eststo y3Reg: reg y3 law i.state i.year, cluster(state)
> esttab y* using myfile.tex, replace b(a2) se ///
>            dropped(---) star(* 0.1 ** 0.05 *** 0.01) ///
>            mlabels(, none) label nogaps nonotes noobs ///
>            noconstant keep(law) ///
>            nolines delimit(&) end(\\) posthead("\addlinespace") ///
>            nonumbers  ///
>            varwidth(46) modelwidth(21) ///
>            noisily
> too many base levels specified
> r(198);
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

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