Statalist


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

st: unix problem


From   Michael Hills <[email protected]>
To   [email protected]
Subject   st: unix problem
Date   Wed, 30 Sep 2009 16:17:38 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index