문제

I'm using estout to create a table of summary statistics in LaTeX.

estpost summarize Var1-Var20
esttab using summarystatistics.tex, replace booktabs  cells("count mean sd min max") noobs nomtitles nonum

This produces more significant digits than necessary, though. I would like to have at most 4 digits for each variable.

I couldn't find the option for this in the help file nor any information online. I know I could control the digits after comma using sutex, but I'd prefer estout for the booktabs option.

도움이 되었습니까?

해결책

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.

다른 팁

The fmt() option governs the number of digits.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top