I would like to be able to center a statistic over multiple columns when using esttab
.
In my toy example, I would like N
to span two columns:
sysuse auto, clear
est clear
qui estpost sum if foreign == 1
qui est store sum_foreign
qui estpost sum
qui est store sum_all
esttab sum_foreign sum_all, ///
replace ///
cells("mean(fmt(3)) sd(fmt(3))") ///
nonum ///
collabels("Mean" "SD") ///
label ///
noobs ///
drop(make) ///
stats(N, ///
fmt(%9.0fc) ///
label("Observations"))
Though the toy example just uses Stata's output, in general I would like to do this in LaTeX.
For other pieces of the table (collabels
, mgroups
etc.) you can specify the pattern()
argument, which allows you to span, but this is not an option for stats()
.
Does anyone know how I can make the observation count span the width of the model (2 columns)?