Tabulate Data (Expressions & Variables)
Load the Stata system dataset nlsw88.dta:
* load national longitudinal survey of young women
sysuse nlsw88, clear
1. Use tab to produce a frequency table for the variable race.
- What are the number of observations in each race category?
- Which race category is the mode (most common)?
- What is the percentage of women in each category?
2. Use tab again, this time on the variable union, but include missing values in the table using the missing option:
- How many women are in a union, how many are not, and how many are missing?
- What percent of the sample has missing values for
union?