Inspired by a recent talk by Ben Jann to the London SUG I tried to use
esttab to create latex under unix but found the lines in the table had
\\\ at the end instead of \\. Thus
sysuse auto
estimates clear
eststo: regress price weight foreign
eststo: regress price weight
esttab using myfile, se tex replace
produces
{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{2}{c}}
\hline\hline
&\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}\\\
&\multicolumn{1}{c}{price}&\multicolumn{1}{c}{price}\\\
\hline
weight & 3.321\sym{***}& 2.044\sym{***}\\\
& (0.396) & (0.377) \\\
etc.
The problem does not arise with Stata under Windows XP.
Does the problem lie with Stata under unix, esttab, or with me?
Michael Hills
*
* 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/