Descriptive Statistics (describe)
It provides a basic description of your data and allows you to explore the formats ("display format") of the variables. We will use the describe command to get descriptive statistics. We will explore descriptive statistics of dataset nlsw88 provided by Stata with the package.
To obtain the most basic descriptives (N, mean, std. deviation, min and max) the command is simply summarize [varname(s)] if you do not specify a variable, Stata will print them all. The format for summarize is a list: One particularly useful options for summarize is the , detail option.
The basic descriptive statistics command in Stata is
summarize, which calculates means, standard deviations, and ranges. More statistics are available with the detail option.The
dtable command allows you to easily create a table of descriptive (summary) statistics, commonly known as “Table 1”. Optionally, you can add p-values from test statistics comparing groups on summary statistics. You can also create a table complete with a title, notes, and more, and then export it to a variety of file types.
How to do descriptive statistics in Stata – A Comprehensive Guide with Example
- Data Description Browser view of data in Stata ...
More itemsNow that we have our data in Stata, let’s calculate some descriptive statistics. The primary command for this in Stata is
summarize or sum for short. Here’s how you can use it: Plain text Copy to clipboard Open code in new window summarize variable_name
Descriptive information and statistics | Stata Learning Modules
- Getting an overview of your file The sysuse command loads a specified Stata-format dataset that was shipped with Stata. Here we will use the auto data file. ...