*! version 1.0 9 May 2019

Title

tabstat2excel -- Export summary statistics generated from a tabstat command to an Excel spreadsheet

Syntax

tabstat2excel
varlist
[if] [in]
[,
options]

Main
filename(string)
specify file name without the .xlsx extension

Description

tabstat2excel exports summary statistics (n, mean, median, min, and max) for a numeric variable or several numeric variables with variable labels to an Excel file.

Examples

Setup

. sysuse auto

Export summary statistics of price and weight to an Excel file named 'summary'

. tabstat2excel price weight, filename(summary)

Export summary statistics of price and weight for domestic cars

. tabstat2excel price weight if foreign == 0, filename(summary)

Authors

Sara Ansari <saraansari1007@gmail.com>

Kabira Namit <knamit@worldbank.org>

Jonathan Seiden <jseiden@savechildren.org>