Getting the descriptive statistics in Stata is quick for one or multiple variables. Descriptive statistics are measures we can use to learn more about the distribution of observations in variables for analysis, transforming variables, and reporting. Each descriptive statistic has their own formula that we will not be covering in this guide, but we will walk through the interpretation of each.
Below is the code for calculating the descriptive statistics of the variable wages.
We are calculating the sum (short of summary) of the variable wages.
The output chart shows us the name of the variable we are examining and the descriptive statistics. There is one row in the chart, wages, which is of observations without missing data in this dataset.
Moving from left to right, the variable name is found under the Variable column.
Next, there are 4,147 observations without missing data for the variable wages.
The average wage value in this dataset is 15.5531 which is below the middle value of 26.11 ((49.92 – 2.30)/2) (not shown), indicating the distribution of the data is skewed toward lower values.
The standard deviation is 7.887, indicating there is a wide distribution of the data.
The minimum value recorded among the observations is 2.30 and the maximum is 49.92. Quite the range!
We can also calculate the descriptive statistics for all the variables in one command line.
With this code we are calculating the descriptive statistics for the variables wages, education, age, sex, and language.