desctable: Stata command for descriptive statistics tables

desctable creates formatted descriptive statistics tables using Stata. The table is automatically exported to Excel, where it can be easily copied and pasted to Word without losing the formatting.

desctable treats continuous, binary, and nominal variables differently — providing formatting, labeling, and statistics that are most appropriate for the measurement level of each variable.

To install desctable:

net install desctable, from("https://tdmize.github.io/data/desctable")

To read the help file:

help desctable


Examples


sysuse nlsw88
desctable wage age i.race i.union i.collgrad tenure i.occupation hours, ///
     filename("descriptivesEX1")



desctable wage age i.race i.union i.collgrad tenure i.occupation hours, ///
     filename("descriptivesEX2") stats(mean freq sd min max iqr median)



desctable wage age i.union i.collgrad tenure i.occupation hours, ///
     filename("descriptivesEX5") group(race)