Help for sumstats

Description

sumstats easily generates a table of summary statistics with various if-restrictions
and prints them to a specified output file using putexcel.

Syntax

sumstats (varlist_1 [if]) [(varlist_2 [if])] [...]

using "/path/to/output.xlsx" [weight], stats(stats_list) [replace]

Instructions

sumstats will print to Excel the requested statistics for the specified variables in each list with the specified conditions for that list.
Specify with using the desired file path for the putexcel output. aweights and fweights are allowed; statistics are calculated with tabstat.

Example

sysuse auto.dta , clear

sumstats ///

(price mpg if foreign == 0) ///

(price displacement length if foreign == 1) ///

using "test.xlsx" , replace stats(mean sd)

Author

Benjamin Daniels
bbdaniels@gmail.com

Contributing

sumstats is open for development on //github.com/bbdaniels/sumstats":GitHub.
Submit bugs and feature requests here.
If you like sumstats, be sure to visit my homepage.