I am trying to append two panels into a single table using esttab with the append option.
However, the output below does not look ideal and still a lot like two separate tables.
1. The title is above the dependent variables
2. The dependent variables are listed twice
3. The table notes are twice
4. There is in general too much space between the two panels.

Do you know how to fix this and really get one table with two panels?
Minimum working example
However, the output below does not look ideal and still a lot like two separate tables.
1. The title is above the dependent variables
2. The dependent variables are listed twice
3. The table notes are twice
4. There is in general too much space between the two panels.
Do you know how to fix this and really get one table with two panels?
Minimum working example
Code:
sysuse auto.dta, replace
// regressions
reg price mpg, robust
estimates store ols1
estadd local X "No", replace
reg price mpg rep78 headroom trunk, robust
estimates store ols2
estadd local X "Yes", replace
ivreg2 price (mpg=weight), robust
estimates store iv1
estadd local X "No", replace
ivreg2 price (mpg=weight) rep78 headroom trunk, robust first
estimates store iv2
estadd scalar kpF = e(rkf)
estadd local X "Yes", replace
// Export top panel
esttab ols1 ols2 using "table1.rtf", replace ///
b(%8.3f) se(%8.3f) label keep(mpg) ///
title("Panel A: OLS") star(* 0.10 ** 0.05 *** 0.01) ///
stats(N X, labels("N" "Controls"))
// Export bottom panel
esttab iv1 iv2 using "table1.rtf", replace ///
b(%8.3f) se(%8.3f) label keep(mpg) ///
title("Panel B: IV") star(* 0.10 ** 0.05 *** 0.01) ///
stats(kpF N X, labels("F-Stat" "N" "Controls")) append

Comment