Maarten goes straight to the point. Below an example:
clear all
set more off
sysuse auto
estpost summarize length weight
esttab using summarystatistics.tex, replace booktabs ///
cells("count mean(fmt(2)) sd(fmt(2)) min max") noobs nomtitles nonum
The fmt()
suboption for cells()
is documented in help estout
.