sum2docx mpg weight length rep78 foreign using d:/temp2.docx, replace
stats(N mean sd min median max) title("this is the summary
statistics")
Add notes
sum2docx mpg weight length rep78 foreign using d:/temp3.docx, replace
stats(N mean(%9.2f) sd min(%9.0g) median(%9.0g) max(%9.0g))
title("this is the summary statistics") note("Data source: auto.dta")
Use wild card
sum2docx *n* m?g using d:/temp4.docx, replace stats(N mean(%9.2f) sd
min(%9.0g) median(%9.0g) max(%9.0g)) title("Table 1: this is the
summary statistics")
Use all variables
drop make
sum2docx _all using d:/temp5.docx, replace stats(N mean(%9.2f) sd
min(%9.0g) median(%9.0g) max(%9.0g)) title("Table 1: this is the
summary statistics")