From the course: Introduction to Stata

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Graphing in Stata: Solution

Graphing in Stata: Solution - Stata Tutorial

From the course: Introduction to Stata

Graphing in Stata: Solution

(Techno music) - Lets have a look at the solutions diagraph and challenge. Our first challenge was to plot a bar chart of average wages and average hours worked by industry. So lets go ahead. We've already loaded the nlsw88 data here. So lets do a quick describe to see what variables we might need to describe. Doing a quick descriptive of the data shows us that the following variables are likely to be of interest to us. Wage, hours, and industry. Now that we know which variables to use, lets go ahead and create a bar chart with the relevant information. We can create a bar chart either through the menu options or by code. In our previous training sessions we used the menu options. So lets use the code here. To create a bar chart we type: graph bar and then we want the mean wage and the mean hours worked over the industry. Lets execute that. We can't see the labels very well, so let's edit the graph quickly.…

Contents