Stata 使用esttab:如何指定摘要统计的位数

Stata 使用esttab:如何指定摘要统计的位数,stata,Stata,我正在使用estpost和esttab生成汇总统计表。但我不知道如何指定小数点后的位数 estpost summarize beauty bmi whr weight height armlength urban age sleep2014 if gender == 1 & year == 2014 est sto m1 estpost summarize beauty bmi whr weight height armlength urban age sleep2014 if gen

我正在使用
estpost
esttab
生成汇总统计表。但我不知道如何指定小数点后的位数

estpost summarize beauty bmi whr weight height armlength urban age sleep2014 if gender == 1 & year == 2014
est sto m1

estpost summarize beauty bmi whr weight height armlength urban age sleep2014 if gender == 0 & year == 2014
est sto m2

estpost summarize beauty bmi whr weight height armlength urban age if gender == 1 & year == 2012
est sto m3

estpost summarize beauty bmi whr weight height armlength urban age if gender == 0 & year == 2012
est sto m4

esttab m1 m2 m3 m4 using summary.tex, cells("mean sd min max") title(Summary statistics) replace

我尝试了
单元格(“mean(3)sd(3)min(2)max(2)”)
,但不起作用。我通读了书中所有的例子。所有示例只保留了最初用于汇总统计的位数。它清楚地说明了如何处理回归结果,但我没有发现任何对汇总统计有用的方法。

这里有一个示例供您参考:

sysuse auto
estpost summarize mpg price
esttab . using summary.tex, title("summary stats") ///
    cells(mean(fmt(%5.3f)) sd(fmt(%5.3f)) min(fmt(%5.2f)) max(fmt(%5.2f))) 
重要的一点是,您正在单元格选项中使用stat(fmt(format))。
为了找到这一点,我使用了
帮助estout
文档,而不是
帮助esttab

以下是一个示例:

sysuse auto
estpost summarize mpg price
esttab . using summary.tex, title("summary stats") ///
    cells(mean(fmt(%5.3f)) sd(fmt(%5.3f)) min(fmt(%5.2f)) max(fmt(%5.2f))) 
重要的一点是,您正在单元格选项中使用stat(fmt(format))。 为了找到这一点,我使用了
help-estout
文档,而不是
help-esttab