Examples
* summary
sysuse auto, clear
logout, save(myfile) excel replace: sum
* summary, MANUALLY clean it
sysuse auto, clear
logout, clear: sum
drop t2 t5 t6
logout, save(myfile) excel replace
* summary, detail
sysuse auto, clear
logout, save(mystuff) excel word replace: sum, detail
* one-way tabulation with value labels
sysuse auto, clear
logout, clear excel dta tex save(myfile) replace: tab foreign rep78
* one-way tabulation
sysuse auto, clear
caplog using mystuff.txt, replace: tabulate price [aweight=turn], summarize(headroom)
logout, use(mystuff.txt) save(mytable) clear excel tex dta replace
* two-way tabulation
sysuse auto, clear
logout, clear: tab mpg foreign
logout, save(mytable) clear excel tex dta replace
* table, combined it with -fix- method
sysuse auto, clear
logout, save(mystuff) excel fix replace: table trunk rep78, c(n mpg mean mpg sd mpg median mpg) stubwidth(25)
* table, MANUALLY clean it after using -fix- or -fix(1)-
sysuse auto, clear
caplog using mystuff.txt, replace: table trunk rep78 , c(n mpg mean mpg sd mpg median mpg)
logout, use(mystuff.txt) fix(1) replace clear
drop in 1/2
logout, save(mystuff.txt) excel fix(1) replace clear
* regress
sysuse auto, clear
logout, save(myfile) excel dec(3) replace: reg price mpg rep78 headroom
* tabstat
sysuse auto, clear
logout, save(mytable) excel replace: tabstat price mpg rep78, stats( max p1 mean)