Graphics Reference
In-Depth Information
graph dot tenure, over(collgrad) over(occ7)
Consider this graph, which shows the
average current work experience broken
down by whether one is a college
graduate and by occupation.
Uses nlsw.dta & scheme vg s2m
not college grad
Prof
college grad
not college grad
Mgmt
college grad
not college grad
Sales
college grad
not college grad
Cler.
college grad
not college grad
Operat.
college grad
not college grad
Labor
college grad
not college grad
Other
college grad
0
2
4
6
8
mean of tenure
graph dot tenure, over(collgrad) over(occ7) asyvars
If we add the asyvars option, the first
over() variable ( collgrad ) is graphed
as if there were two
Prof
-variables. The
two levels of collgrad are shown as
different markers on the same line, and
they are labeled using the legend.
Uses nlsw.dta & scheme vg s2m
y
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
2
4
6
8
mean of tenure
not college grad
college grad
graph dot tenure, over(occ5) over(union) missing
Consider this graph in which we use the
over() option to show tenure broken
down by occ5 and union . By including
the missing option, we then see the
category for those who are missing on
the union variable, shown as the third
group labeled with a dot. See
Dot : Cat axis (202) for examples
showing how you could change the label
(.) to something more meaningful, e.g.,
“Missing”.
Uses nlsw.dta & scheme vg s2m
Prof/Mgmt
Sales
nonunion
Clerical
Labor/Ops
Other
Prof/Mgmt
Sales
union
Clerical
Labor/Ops
Other
Prof/Mgmt
Sales
.
Clerical
Labor/Ops
Other
0
2
4
6
8
10
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