I'm writing my bachelor thesis in stata and I'm trying to export the regression tables to latex.
I do this in the common way: eststo
But if do:
esttab using table1.tex, booktab
I get the error:
My code look as follows:./template.tex:82: Undefined control sequence.
l.82 \toprule
?
{\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}\begin{tabular}{l*{1}{c}}\toprule&\multicolumn{1}{c}{(1)}\\&\multicolumn{1}{c}{\_\_000001}\\\midrulepost & -1.308\sym{***}\\& (-11.74) \\\addlinespacetreatment & -0.0783 \\& (-1.70) \\\addlinespace\_diff & 0.0593 \\& (0.38) \\\addlinespace\_cons & 7.932\sym{***}\\& (232.89) \\\midrule\(N\) & 3931 \\\bottomrule\multicolumn{2}{l}{\footnotesize \textit{t} statistics in parentheses}\\\multicolumn{2}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\\end{tabular}}
Thank you so much for the help!
A.