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.

Installation

To install desctable:

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

Help file

To read the help file (also available here):

     help desctable

Citation

In general, I do not think the use of desctable requires citation. So for most cases, feel free to use desctable without citation. But, if you need/want a citation you can cite desctable as:

Mize, Trenton D. and Bianca Manago. 2018. "desctable: Stata command for descriptive statistics table." https://www.trentonmize.com/software/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)