Hi everyone, I use eststo and esttab to generate the LaTeX regression table output. However, there are always extra rows generated. For example, 
What I would like to see is like the one below.
Please find the example code below. Any ideas on how to fix this issue (by deleting the second (1) and b/se)? Thank you very much in advance.
What I would like to see is like the one below.
Please find the example code below. Any ideas on how to fix this issue (by deleting the second (1) and b/se)? Thank you very much in advance.
Code:
sysuse auto, clear
eststo clear
eststo: reg price mpg headroom weight, r
#delimit ;
esttab using "regression", nomtitles booktabs replace
cells((b(star fmt(%9.3f))) (se(fmt(%9.3f)par)))
order(mpg headroom weight)
stats(N r2 r2_a, labels("Observations" "R-squared" "Adjusted R-squared") fmt(%9.0fc 3 3))
starlevels(* 0.10 ** 0.05 *** 0.01)
prehead("{\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}"
"\begin{tabular}{l*{2}{c}}"
"\toprule"
"\textbf{Dependent Variable:} &\multicolumn{1}{c}{(1)}\\"
"\multicolumn{2}{l}{\textbf{Price}}\\")
posthead("\midrule")
label;
#delimit cr

Comment