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 - 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.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Introduction to graph commands5m 50s
-
(Locked)
Bar graphs and dot charts5m 25s
-
(Locked)
Distributional analysis (graphical)5m 12s
-
(Locked)
Pie charts3m 44s
-
(Locked)
Scatterplots and fitted lines5m 10s
-
(Locked)
Contour plots3m 22s
-
(Locked)
Geographic maps5m 49s
-
(Locked)
Graphing in Stata: Challenge56s
-
(Locked)
Graphing in Stata: Solution3m 42s
-
(Locked)
-
-
-
-
-
-