Hi everyone,
I just came across this pretty cool package for reporting summary statistics from continuous and categorical variables in a table and exporting to excel. It is called Table 1. Here are two examples:
ssc install table1
1.
sysuse auto
table1, by(foreign) vars(price conts \ weight contn \ rep78 cat) format(%2.1f) saving(auto.xls, replace)
2.
webuse nhanes2
table1, by(diabetes) vars(age conts \ bmi contn \ highbp cat \ sex cat) format(%2.1f)