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, is already up and running.

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

st: esttab error - too many base levels specified

From   Deborah Goldschmidt <>
Subject   st: esttab error - too many base levels specified
Date   Mon, 19 Mar 2012 11:00:09 -0400


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!

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) ///

too many base levels specified

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index