Danielle
Danielle

Reputation: 339

New issue with estpost tabulate

I use estpost tabulate to export several results to Latex from Stata.

I think my system admin installed a new version of something and now this function no longer works.

Try this code from the estout webpage:

sysuse auto, clear
//(1978 Automobile Data)

estpost tabulate rep78 foreign
esttab, cell(colpct(fmt(2))) unstack noobs

And I get this error: (tabulating estimates stored by eststo; specify "." to tabulate the active results) Part of the crazy thing is that the code still writes a blank table to my latex file, which means that the error only becomes obvious when I compile my full document

EDIT: The answer here does show that the simple solution is to include esttab ., cell(colpct(fmt(2))) unstack noobs. But this doesn't really solve my problem, since I have to find every instance of using this code in about 40 do files I am working with right now and using esttab.

Is there any other way around this? Could I reinstall an earlier version of esttab? Specify that I always want to tabulate the active results in a preamble somewhere?

Upvotes: 1

Views: 1179

Answers (1)

ℕʘʘḆḽḘ
ℕʘʘḆḽḘ

Reputation: 19405

try

esttab ., cell(colpct(fmt(2))) unstack noobs

note the .

if you want to name your stored output, simply use:

estpost tabulate rep78 foreign
#store the output
eststo my_output

esttab my_output, cell(colpct(fmt(2))) unstack noobs

Upvotes: 1

Related Questions