Graphics Reference
In-Depth Information
Let's now consider examples with multiple
y
-variables. These examples are shown using
the vg outc scheme.
graph dot prev exp tenure, over(occ7)
This graph shows the average previous
experience and average current tenure
broken down by occupation. While you
do not need to use the over() option,
omitting it may make a fairly boring
graph.
Uses nlsw.dta & scheme vg outc
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
2
4
6
8
mean of prev_exp
mean of tenure
graph dot prev exp tenure, over(occ7) over(collgrad)
This graph adds whether one is a
college graduate as an additional
grouping level. Because the command
has multiple
Prof
Mgmt
Sales
not college grad
Cler.
-variables, we cannot
include another over() option since
dot plots support three levels of nesting
and the multiple
y
Operat.
Labor
Other
Prof
Mgmt
y
-variables account for
Sales
college grad
Cler.
a level.
Uses nlsw.dta & scheme vg outc
Operat.
Labor
Other
0
2
4
6
8
10
mean of prev_exp
mean of tenure
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.
Search WWH ::




Custom Search