summarize: inspect distributions in the browser

Calculate core descriptive statistics for one or more numeric variables.

Try the live demo View supported commands

Independent software. Not affiliated with, sponsored by, or endorsed by StataCorp LLC.

Basic and detailed summaries

import delimited "hsb2.csv", clear
summarize math read write
summarize math, detail

The first command summarizes several score variables. Adding detail requests a more detailed view of the selected variable's distribution.

Use summaries as an early check

Before estimating a model, compare the observation count, missingness, range, mean, and standard deviation with the dataset documentation. Unexpected values often reveal an import, encoding, recode, or missing-value issue before it reaches later analysis.

Current limits

The compatibility table explicitly lists the detail option. Other Stata options or exact formatting behavior may not be implemented. For grouped or custom-statistic output, inspect the separate entries for commands such as tabstat and mean.

Related guides

Try the workflow

Open the live project, inspect the existing do-file, and adapt the example above. No stats.camp account is required for the demo.

Open live demo