Hi Statalist,
I want to change the tabstat results to latex table. and found the following method:
sysuse auto
tabstat price mpg length, s(mean p25 median p75 p90 p95 p99) save
tabstatmat
test esttab matrix(test) using c:\temp\test.tex, replace
does anyone know how to control the decimal places of means? I looked for esttab for a long time... they do not have clear instructions/examples on how to control the decimal places of mean variables, I tried several options such as cells(r(fmt(a3))), but not working. Many thanks in advance!
I want to change the tabstat results to latex table. and found the following method:
sysuse auto
tabstat price mpg length, s(mean p25 median p75 p90 p95 p99) save
tabstatmat
test esttab matrix(test) using c:\temp\test.tex, replace
does anyone know how to control the decimal places of means? I looked for esttab for a long time... they do not have clear instructions/examples on how to control the decimal places of mean variables, I tried several options such as cells(r(fmt(a3))), but not working. Many thanks in advance!
Comment